Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alphabetically sort jobs/queues for metrics #1083

Merged
merged 1 commit into from
Oct 6, 2021
Merged

Alphabetically sort jobs/queues for metrics #1083

merged 1 commit into from
Oct 6, 2021

Conversation

dwightwatson
Copy link
Contributor

Minor change, but this will alphabetically sort the job classes and queue names before returning them to the Horizon front-end. I'm not sure what the default ordering is - possibly something internal to Redis, or the order the jobs are seen by Horizon. However, when you have a large number of jobs it can be hard to find what you're looking for. I think it makes sense to sort alphabetically so at least there is a predictable order.

For context - here's the first 4 jobs shown in my app without this ordering change and it's all over the shop.

image

@taylorotwell taylorotwell merged commit b348f14 into laravel:5.x Oct 6, 2021
@andreladocruz
Copy link

Thanks for helping me giving more detailed information about PR #1078

@dwightwatson
Copy link
Contributor Author

Wow - I didn't see your PR, how funny. This was just something that's been bugging me for a while and finally had time to have a play with. Great minds think alike!

@andreladocruz
Copy link

@dwightwatson LOL... =) I have 0 patience to write more than needed. The most important thing... it's ordered now. =) Thanks again.

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.

3 participants