-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Sentry cron monitoring #193
Conversation
b986cbc
to
90c4a83
Compare
d804720
to
9c67b00
Compare
Based on configuration example from Sentry docs. Timezone and schedule match current config on dokku3 Previous runs of the cron job seem to take <10mins in total. Therefore 10 minutes runtime for each individual task should be plenty. The first task in the list is expected to start shortly after midnight, but the later ones might not start until nearly 10 past. Therefore 30 mins chosen to give a bit of leeway on the checkin time.
This method is the entry point for the cron job, which is what we want to be monitoring Running the tasks in isolation (e.g. for testing) would not be monitored
9c67b00
to
a68aa10
Compare
c0f0de4
to
57f6304
Compare
@lucyb I've refactored things in 02b85a3 . My thinking is that the SDK is initialised once per execution of the cron job, then for each task, a new |
02b85a3
to
e1394f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for responding to the feedback. This is a really neat piece of code.
Thanks, Lucy. Based on my testing - the Sentry issues raised by this cron monitoring do not appear in #sentry-events on Slack. It appears that the alert configuration requires both an Event and a corresponding Issue to be triggered. We may need to change this configuration for these to appear in the slack channel. I'll create a new issue for this. |
Add sentry cron monitoring to metrics so we can check it's running as it should be.
Fixes #105