Page MenuHomePhabricator

Kubernetes scheduled jobs are not scheduled/executed every time they should be
Closed, InvalidPublic

Description

I have a job scheduled to run every night, but it does not run every night:

tools.dewikigreetbot@tools-sgebastion-07:~$ date;kubectl get scheduledjobs;kubectl get pods --show-all
Sun Jan  5 11:02:52 UTC 2020

NAME          SCHEDULE      SUSPEND   ACTIVE    LAST-SCHEDULE
updatestats   15 21 * * *   False     0         Thu, 02 Jan 2020 21:15:00 +0000

NAME                           READY     STATUS      RESTARTS   AGE
greetbot-2864870177-jmc7w      1/1       Running     0          16d
updatestats-1400866616-lwzb3   0/1       Completed   0          3d
updatestats-1629062977-6x47t   0/1       Completed   0          6d
updatestats-1629259585-f3dca   0/1       Completed   0          7d
updatestats-1629652801-8yqqx   0/1       Completed   0          15d
updatestats-1858242378-1pg29   0/1       Completed   0          14d
updatestats-1858832202-wejdu   0/1       Completed   0          2d

Event Timeline

bd808 edited projects, added Toolforge, Upstream; removed Cloud-Services.
bd808 subscribed.

Closing as invalid because this report was about scheduledjobs support on the legacy Kubernetes cluster. This feature was alpha status in the Kubernetes version deployed there. Hopefully the cronjobs support in the 2020 Kubernetes cluster is better -- https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/