rancher-cron icon indicating copy to clipboard operation
rancher-cron copied to clipboard

Updating schedule on a container does not change it in the service

Open smazurov opened this issue 9 years ago • 0 comments

Description

When you change schedule on your cron container, instead of assigning it for the first time, it gets picked up, but because uuid does not change (i thought it would!), it does not update the schedule at which it runs in the cron service.

Steps to reproduce

  1. Assuming cron is running (in debug mode) and has registered a scheduled container
  2. Go to service with scheduled container and change the schedule to be more or less frequent
  3. See that new schedule is displayed, but not reflected in the schedule that actually runs

What should happen

Cron service should pick up new schedule, check to see if its the same as old, if not, mark the current cron job as "stale" and add a new one for new schedule

Workaround

Restart cron service.

smazurov avatar May 19 '16 18:05 smazurov