-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add batch activity unpause. #747
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a curious question about --match-all
, nothing blocking
- name: match-all | ||
type: bool | ||
description: | | ||
Every paused activity should be unpaused. This flag is ignored if | ||
activity-type is provided. Can only be used with --query. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question, what if activity-type
is not provided and this is not set either, what is the default behavior?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This:
case BatchTypeUnpauseActivities:
if params.UnpauseActivitiesParams.ActivityType == "" && !params.UnpauseActivitiesParams.MatchAll {
return fmt.Errorf("must provide ActivityType or MatchAll flag")
}
so basically the call will fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make that clear in the CLI docs for users that one of these two is required when query is present? It was a bit hard to know from CLI help alone.
What was changed
Update "activity unpause" API to support batch operation.
Why?
Part of the activity API work.
Checklist
Closes
https://temporalio.atlassian.net/browse/OSS-3789
How was this tested:
By adding test.
Not yet.