Container restars interrupt cron jobs

Hey,

I have a cron job that runs once a day. Unfortunately, the container restarted exactly at the same time and the job could not finish:

k4gpg 2021-08-16 07:25:59-04:00 The container is being stopped because Galaxy is replacing the machine it's running on.
k4gpg 2021-08-16 07:26:00-04:00 Application exited with signal: terminated

Is there a way to retry the same job if the container restarts while the job is still running, or another workaround? I’m using littledata:synced-cron.

Hello, this package maybe be helpful GitHub - meteor/ddp-graceful-shutdown

1 Like

I’ll see what I can do.

Thanks a lot