Skip to content

Commit

Permalink
Require workflow ID to be set for Nexus (#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns authored Dec 2, 2024
1 parent e3ef9b4 commit 7245bf8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ public static WorkflowStub createNexusBoundStub(
throw new IllegalArgumentException("Options are expected to be set on the stub");
}
WorkflowOptions options = stub.getOptions().get();
if (options.getWorkflowId() == null) {
throw new IllegalArgumentException(
"WorkflowId is expected to be set on WorkflowOptions when used with Nexus");
}
WorkflowOptions.Builder nexusWorkflowOptions =
WorkflowOptions.newBuilder(options)
.setRequestId(request.getRequestId())
Expand Down

0 comments on commit 7245bf8

Please sign in to comment.