Skip to content

Commit 4438320

Browse files
author
David Wang
authored
ref(crons): Optimize broken detection task schedule (#68027)
As we're launching broken monitor detection to everyone: https://github.com/getsentry/sentry-options-automator/pull/1002 Lets optimize the task schedule for more likelihood that users of crons will pay attention to the emails we send. **Setting the schedule to 8am PDT and only for weekdays so users will get alerted at the "start" of workdays**
1 parent 6c29fc5 commit 4438320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sentry/conf/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,8 @@ def SOCIAL_AUTH_DEFAULT_USERNAME() -> str:
10381038
},
10391039
"monitors-detect-broken-monitor-envs": {
10401040
"task": "sentry.monitors.tasks.detect_broken_monitor_envs",
1041-
# 17:00 PDT, 20:00 EDT, 0:00 UTC
1042-
"schedule": crontab(minute="0", hour="0"),
1041+
# 8:00 PDT, 11:00 EDT, 15:00 UTC
1042+
"schedule": crontab(minute="0", hour="15", day_of_week="mon-fri"),
10431043
"options": {"expires": 15 * 60},
10441044
},
10451045
"clear-expired-snoozes": {

0 commit comments

Comments
 (0)