Page MenuHomePhabricator

Add a way to suspend CronJobs
Closed, ResolvedPublic

Description

Add code to the mediawiki chart to allow suspending a job from values.yaml and/or from puppet

Event Timeline

Change #1146626 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/deployment-charts@master] mediawiki: Add mwcron.suspended_jobs list

https://gerrit.wikimedia.org/r/1146626

Copied from CR because it will need to be taken into account in further patches:

From k8s docs:

Executions that are suspended during their scheduled time count as missed Jobs. When .spec.suspend changes from true to false on an existing CronJob without a starting deadline, the missed Jobs are scheduled immediately.

Should we also check for or set startingDeadlineSeconds to prevent surprises?

It's even worse than that, without startingDeadlineSeconds, if the CronJob has been suspended for more than 100 scheduled executions, then it won't start until it's deleted and recreated because of the missed schedules.

But for now I need a way to suspend a Job, we can sort out details in a later patch.

Change #1146626 merged by jenkins-bot:

[operations/deployment-charts@master] mediawiki: Add mwcron.suspended_jobs list

https://gerrit.wikimedia.org/r/1146626