Page MenuHomePhabricator

[M] Write CronJob configuration
Closed, ResolvedPublic

Description

To run regular, automated imports and updates from the external data source, we will need a Kubernetes CronJob definition for the ipoid Chart in operations/deployment-charts.

Prior art that can be helpful:

Some notes:

  • we should switch concurrency to 0
  • we probably want a backoffLimit of something like 2 or 3, to avoid retrying a bunch of times on failure

Acceptance criteria:

  • A cronjob.yaml template is in the ipoid charts directory, and contains the command invocation to import/update data on a daily basis

Event Timeline

Change 966813 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[operations/deployment-charts@master] ipoid: Update cronjob definition

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

Change 967243 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[operations/deployment-charts@master] ipoid: Enable the cronjob

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

Change 967245 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[operations/deployment-charts@master] ipoid: Set an initialImport cron job

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

Tchanders renamed this task from Write CronJob configuration to [M] Write CronJob configuration.Nov 1 2023, 6:51 PM

Change 971933 had a related patch set uploaded (by Effie Mouzeli; author: Effie Mouzeli):

[operations/deployment-charts@master] (WIP) ipoid: add cronjobs for initialImport and dailyUpdate

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

Change 967245 abandoned by Effie Mouzeli:

[operations/deployment-charts@master] [WIP] ipoid: Set an initialImport cron job

Reason:

in favour of I662d33f1a9e0f0230f3247d8443505427864dc92

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

Change 966813 abandoned by Effie Mouzeli:

[operations/deployment-charts@master] ipoid: Update cronjob definition

Reason:

in favour of I662d33f1a9e0f0230f3247d8443505427864dc92

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

Change 967243 abandoned by Effie Mouzeli:

[operations/deployment-charts@master] ipoid: Enable the cronjob

Reason:

in favour of I662d33f1a9e0f0230f3247d8443505427864dc92

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

@STran @Tchanders @kostajh I am merging the first iteration of the jobs as I want to run a few tests on staging. Feel free to make new patches for any other changes we may need here.

jijiki changed the task status from Open to In Progress.Nov 7 2023, 3:36 PM
jijiki triaged this task as High priority.
jijiki added a project: serviceops.

Change 971933 merged by jenkins-bot:

[operations/deployment-charts@master] ipoid: add cronjobs for initialImport and dailyUpdate

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

Change 973076 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[operations/deployment-charts@master] ipoid: Set MYSQL_HOST

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

Change 973076 merged by jenkins-bot:

[operations/deployment-charts@master] ipoid: Set MYSQL_HOST

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

Fixed, you will need to run helmfile apply for this change to take effect.

Change 973292 had a related patch set uploaded (by Effie Mouzeli; author: Effie Mouzeli):

[operations/deployment-charts@master] ipoid: disable emptyDir

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

Change 973292 merged by jenkins-bot:

[operations/deployment-charts@master] ipoid: disable emptyDir

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