Skip to content

Commit

Permalink
chore(nimbus): change pop sizing task to crontab scheduling (#11852)
Browse files Browse the repository at this point in the history
Because

- Tasks with integer-based scheduling first fire <integer> seconds after
the latest deploy
- Pop sizing fetch task is scheduled for 24 hours
- We often have multiple deployments per day, so 24 hours after the
latest deploy will usually not occur until the weekend

This commit

- changes the scheduling to use crontab so that the task will fire at
06:00 UTC every day regardless of deployments

Fixes #11851
  • Loading branch information
mikewilli authored Nov 26, 2024
1 parent bd713d0 commit 1423172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experimenter/experimenter/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@
},
"fetch_population_sizing_data": {
"task": "experimenter.jetstream.tasks.fetch_population_sizing_data",
"schedule": 86400,
"schedule": crontab(minute=0, hour=6, day_of_week=1),
},
}

Expand Down

0 comments on commit 1423172

Please sign in to comment.