Skip to content

Comments

Batch rate limit#675

Merged
stephanos merged 2 commits intotemporalio:mainfrom
stephanos:batch-rate-limit
Sep 23, 2024
Merged

Batch rate limit#675
stephanos merged 2 commits intotemporalio:mainfrom
stephanos:batch-rate-limit

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
* `--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.

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. 🤞

}

// 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

@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
@stephanos stephanos deleted the batch-rate-limit branch September 23, 2024 20:50
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.

3 participants