Skip to content

[13.x] Add JobReleased event to Worker - #61108

Draft
jackbayliss wants to merge 3 commits into
laravel:13.xfrom
jackbayliss:13.x-JobReleased-event
Draft

[13.x] Add JobReleased event to Worker#61108
jackbayliss wants to merge 3 commits into
laravel:13.xfrom
jackbayliss:13.x-JobReleased-event

Conversation

@jackbayliss

@jackbayliss jackbayliss commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

This PR adds a JobReleased event that is dispatched when a job releases itself back onto the queue from within its own handler.

We have a JobReleasedAfterException event, but the difference is this event fires when a release happens such as from the middleware ie WithoutOverlapping.. or in job handle in userland when using ->release();

Context is we're freshly using managed queues, due to the graceful shutdown, our jobs can take hours and you can't have just 1 worker on pro, so we end up setting 1 worker min, 2 max, so we need to use WithoutOverlapping as only need one job of a particular type at a time and it would be nice to know when a job gets released, so I figured this would be nice.

Open to renaming it 🫡

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PRs 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.

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.

1 participant