Help Center> Cloud Container Engine> FAQ> Workload> Others> What Should I Do If a Scheduled Task Cannot Be Restarted After Being Stopped for a Period of Time?

What Should I Do If a Scheduled Task Cannot Be Restarted After Being Stopped for a Period of Time?

If a scheduled task is stopped during running, before its restart, the system calculates the difference between the last time the task was successfully executed and the current time and compares the time difference with the scheduled task period multiplied by 100. If the time difference is greater than the period multiplied by 100, the scheduled task will not be triggered again.

Solution

Configure the startingDeadlineSeconds parameter in a cron job. This parameter can be created or modified only by using kubectl or APIs. For details about how to use kubectl, see kubectl Usage Guide.

If you create a cron job again, you can temporarily avoid this issue. In the future, CCE will display all factors or configurable items on the GUI to prevent such problems.