Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[12.x] Pause a queue for given seconds#57917

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
taylorotwell merged 7 commits intolaravel:12.xfromrodrigopedra:12.x
Nov 26, 2025

Conversation

@rodrigopedra
Copy link
Contributor

PR#57800 added theQueueManager@pause() method to allow pausing a given queue.

This method pauses the queue indefinitely by using a cache's storeforever() method.

As such a queue can only be resumed by calling theQueueManager@resume() method added in the same PR.

When consuming an external API with rate limiting, one can get a429 response when the rate limit is surpassed.

Often times this response is accompanied by theRetry-After header that gives the number of seconds to wait before retrying.

Currently, one would need to keep track of those seconds to manually pause a queue (when a429 response is received) and manually resume a queue (when the timeout is expired).

This PR

  • Adds theQueueManager@pauseFor() method that allows passing the number of seconds a queue should be paused.
  • Fixes some test cases and adds relevant assertions to test for the presented use case.
    • It seems the original PR aimed for allowing the seconds to be passed, so there were already tests in place testing for a third$seconds argument.

cbaconnier and nbreens reacted with thumbs up emojibjuppa reacted with heart emoji
Button99

This comment was marked as resolved.

@taylorotwelltaylorotwell merged commit9538b23 intolaravel:12.xNov 26, 2025
74 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@shaedrichshaedrichshaedrich left review comments

@Button99Button99Button99 left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@rodrigopedra@shaedrich@Button99@taylorotwell

[8]ページ先頭

©2009-2025 Movatter.jp