Skip to content

[13.x] Add WorkerIdle event#60134

Merged
taylorotwell merged 3 commits into
laravel:13.xfrom
jackbayliss:13.x-add-worker-idle
May 15, 2026
Merged

[13.x] Add WorkerIdle event#60134
taylorotwell merged 3 commits into
laravel:13.xfrom
jackbayliss:13.x-add-worker-idle

Conversation

@jackbayliss
Copy link
Copy Markdown
Contributor

@jackbayliss jackbayliss commented May 14, 2026

So, I had a thought..

I have all these workers, but, are they really being used to their full capacity?

I want to know if they're idling, JobPopping is OK, but you cant distinguish if it got a job, or didn't.

Look at the code... and you'll see if there's no job, it sleeps!

As the resident Queue man (lol),

This PR adds a WorkerIdle event.. now I can clearly see if a worker is doing nothing ie if I see 10000 idle events for my worker called geoff I know i need to do something thanks to the options class which reveals the --name (biggest secret ever)

This just helps me to know if I can move queues onto other workers if they're never used etc.

@github-actions
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.

@jackbayliss jackbayliss marked this pull request as ready for review May 14, 2026 22:00
@taylorotwell taylorotwell merged commit 912f11d into laravel:13.x May 15, 2026
54 checks passed
@jackbayliss jackbayliss deleted the 13.x-add-worker-idle branch May 15, 2026 15: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.

2 participants