Skip to content

Conversation

@jackbayliss
Copy link
Contributor

@jackbayliss jackbayliss commented Dec 23, 2025

This PR adds a QueuePaused and QueueResumed event that fire when queues are paused or resumed.

When queues are paused / resumed adding events provide visibility and means we can hook into the events for things like slack etc. it's recommended in the docs to do it via the command so thought this would be useful.

The tests are using the phpunit test case, so had to do it this way afaik, and didn't want to change it to the orchestra test case just incase 🤷🏻

@github-actions
Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@jackbayliss jackbayliss marked this pull request as ready for review December 23, 2025 23:08
*
* @param string $connection The connection name.
* @param string $queue The queue name.
* @param \DateTimeInterface|\DateInterval|int|null $ttl
Copy link
Contributor

Choose a reason for hiding this comment

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

I think, we can slightly narrow this

Suggested change
* @param \DateTimeInterface|\DateInterval|int|null $ttl
* @param \DateTimeInterface|\DateInterval|non-negative-int|null $ttl

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