Skip to content

fix workflow start options#68

Merged
duoertai merged 2 commits intomainfrom
fix-workflow-start-options
Nov 18, 2022
Merged

fix workflow start options#68
duoertai merged 2 commits intomainfrom
fix-workflow-start-options

Conversation

@duoertai
Copy link
Copy Markdown
Contributor

@duoertai duoertai commented Nov 16, 2022

tested with cron schedule
tested with different workflow reuse id policy

}
switch (workflowIdReusePolicy) {
case ALLOW_DUPLICATE_FAILED_ONLY -> {
case ALLOW_DUPLICATE_FAILED_ONLY:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be compatible with java 8

public abstract class WorkflowStartOptions {
public abstract Integer getWorkflowTimeoutSeconds();

@Nullable
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, how about let's use Optional, because:

  • we are using it already so it's better to keep consistent
  • Optional is more explicit and friendly IMO for caller to know this field could be null

@duoertai duoertai merged commit 3dd1155 into main Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants