Skip to content

[12.x] Display oldest pending job in queue:monitor output#59073

Merged
taylorotwell merged 2 commits into
laravel:12.xfrom
jackbayliss:12.x-add-oldest-pending
Mar 4, 2026
Merged

[12.x] Display oldest pending job in queue:monitor output#59073
taylorotwell merged 2 commits into
laravel:12.xfrom
jackbayliss:12.x-add-oldest-pending

Conversation

@jackbayliss

@jackbayliss jackbayliss commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

This was only available in the json output when using --json

This PR ensures its shown in the output too to align the two, and saves digging in the DB / useful when you're doing multiple queue names at once.

Before:

php artisan queue:monitor default

  Queue name ......................................................................................................................... Size / Status  
  [database] default ........................................................................................................................ [1] OK  
  Pending jobs ................................................................................................................................... 1  
  Delayed jobs ................................................................................................................................... 0  
  Reserved jobs .................................................................................................................................. 0  
  
 php artisan queue:monitor default --json
// This shows oldest pending...
[{"connection":"database","queue":"default","size":1,"pending":1,"delayed":0,"reserved":0,"oldest_pending":1741042884,"status":"OK"}]

After:

php artisan queue:monitor default

  Queue name ......................................................................................................................... Size / Status  
  [database] default ........................................................................................................................ [1] OK  
  Pending jobs ................................................................................................................................... 1  
  Delayed jobs ................................................................................................................................... 0  
  Reserved jobs .................................................................................................................................. 0  
  Oldest pending job .................................................................................................................... 1 year ago

@github-actions

github-actions Bot commented Mar 3, 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.

@jackbayliss

Copy link
Copy Markdown
Contributor Author

Tests are failing which will be resolved in #59068 - but nothing to do with this PR so good for review 🫡

@jackbayliss jackbayliss marked this pull request as ready for review March 3, 2026 23:26
@taylorotwell taylorotwell merged commit d3af763 into laravel:12.x Mar 4, 2026
65 of 72 checks passed
jonagoldman pushed a commit to deplox/laravel-framework that referenced this pull request Apr 30, 2026
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