Skip to content

DX-2495: add flow control pause, resume, pin, unpin, and resetRate endpoints#57

Merged
CahidArda merged 9 commits into
mainfrom
DX-2495
Mar 16, 2026
Merged

DX-2495: add flow control pause, resume, pin, unpin, and resetRate endpoints#57
CahidArda merged 9 commits into
mainfrom
DX-2495

Conversation

@CahidArda

Copy link
Copy Markdown
Collaborator
  1. qstash/flow_control_api.py:

    • Added is_paused, is_pinned_parallelism, is_pinned_rate fields to FlowControlInfo
    • Added PinFlowControlOptions and UnpinFlowControlOptions dataclasses
    • Added pause(), resume(), pin(), unpin(), reset_rate() methods to FlowControlApi
  2. qstash/asyncio/flow_control.py: Same async versions of all new methods

  3. tests/test_flow_control.py and tests/asyncio/test_flow_control.py:

    • Updated URL from httpstat.us to mock.httpstatus.io
    • Made flow control keys unique per test (using timestamp)
    • Added tests for pause/resume, pin/unpin, and reset_rate

…ints

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@linear

linear Bot commented Mar 12, 2026

Copy link
Copy Markdown

Upstash Box and others added 7 commits March 12, 2026 21:54
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…lOptions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rtion

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CahidArda

Copy link
Copy Markdown
Collaborator Author

todo:

  • [] why the rate_count checks in the tests failed

@CahidArda CahidArda merged commit 4575c5f into main Mar 16, 2026
1 check passed
@CahidArda CahidArda deleted the DX-2495 branch March 16, 2026 13:55
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