Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Batch rate limit #675

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Batch rate limit #675

merged 2 commits into from
Sep 23, 2024

Conversation

stephanos
Copy link
Contributor

@stephanos stephanos commented Sep 23, 2024

What was changed

Rebased #551 that was never actually merged.

@stephanos stephanos force-pushed the batch-rate-limit branch 5 times, most recently from 2ec1be0 to debbf70 Compare September 23, 2024 14:58
@stephanos stephanos marked this pull request as ready for review September 23, 2024 16:44
@@ -2530,6 +2530,7 @@ Includes options set for [payload input](#options-set-for-payload-input).
* `--yes`, `-y` (bool) -
Don't prompt to confirm signaling.
Only allowed when --query is present.
* `--rps` (float) - Limit batch's requests per second. Only allowed if query is present.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will need to be rebased again since Andrew just merged an update that converted this file to YAML. :/ Hopefully will be straightforward, but let me know if it gets gnarly and/or you'd like me to do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@josh-berry okay, rebased! Should be good now. 🤞

@@ -442,11 +444,17 @@ func (s *SingleWorkflowOrBatchOptions) workflowExecOrBatch(
reason = defaultReason()
}

// Check rps is used together with query
if s.Rps != 0 && s.Query == "" {
Copy link
Member

Choose a reason for hiding this comment

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

This condition will never be true down here (Query is always non-empty down here, it's checked above)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good callout 👍 fixed!

Copy link
Collaborator

@josh-berry josh-berry left a comment

Choose a reason for hiding this comment

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

👍 Thanks for forward-porting and sorry I missed this before!

@stephanos stephanos merged commit 5debc1e into temporalio:main Sep 23, 2024
7 checks passed
@stephanos stephanos deleted the batch-rate-limit branch September 23, 2024 20:50
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants