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

[Cron Monitoring] Easy way to setup queue monitoring #718

Open
stayallive opened this issue Jun 23, 2023 · 3 comments
Open

[Cron Monitoring] Easy way to setup queue monitoring #718

stayallive opened this issue Jun 23, 2023 · 3 comments

Comments

@stayallive
Copy link
Collaborator

We have the $schedule->command(...)->sentryMonitor() to "magically" setup cron monitoring for scheduled commands, how cool would it be if we could have someway to do this but for queues.

Note: This is pseude code and by no means a final draft or how it should or could work

$schedule->sentryWatchQueue('first_queue', 'second_queue')->everyFiveMinutes();

This would setup a scheduled command that fires a job on 2 queues every five minutes which would upsert crons for those queues allowing you to monitor if a queue is still running and processing jobs.

Note: Would probably need to prevent queuing the job multiple times to filling up a queue or should be a throttled queue job so it doesn't DDoS Sentry once it comes back online

h/t @SebastiaanKloos

@SebastiaanKloos
Copy link
Contributor

SebastiaanKloos commented Jun 23, 2023

Thanks for tagging @stayallive 👀

@cleptric
Copy link
Member

:shipit:

@arfar-x
Copy link

arfar-x commented Jul 8, 2024

There is Horizon for monitoring Laravel's queues. But what it lacks is, it doesn't simulate/reproduce the state of other queues for concurrently running queues. Possible features could be as the following:

  • Showing the jobs [and payloads] running at the same time. I.e. There are two jobs querying the database concurrently, I want to have those jobs' names in a event-like format on Sentry.
  • Scenario: I'm expecting a job to run, what happened that the didn't run for any reason !
  • A Graph-like chart to see the jobs running on each queue with their timestamps.

Laravel's Horizon is a mature system, so this feature can be integrated with it.

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

No branches or pull requests

6 participants