getsentry / getsentry/sentry-laravel

Easy way to setup queue monitoring

Open
#718 3 comments 6 reactions 0 assignees View on GitHub
Checks Crons Feature Laravel
Dominant language
PHP
Stars
1.4k
Forks
211
Avg merge
15h 57m
Merged PRs (30d)
3

Description

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

```php
$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*

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.