jamesrwhite / minicron

🕰️ Monitor your cron jobs
GNU General Public License v3.0
2.34k stars 154 forks source link

Schedule - Daylight saving time: failed to execute at its expected time #245

Closed JonasBonno closed 7 years ago

JonasBonno commented 7 years ago

CEST UTC+02:00: I was getting email notifications 2 hours and 2 minutes after jobs already successfully finished (Exit Status 0) with:

"... failed to execute at its expected time. ..."

CET UTC+01:00: We have set the time back to winter time (-1 hour), and now the problem seems to be gone.

Originally I thought I was dealing with some timezone misconfiguration I made in the Ubuntu 16.04, but running in winter time and notifications gone, maybe it is minicron?

JonasBonno commented 7 years ago

Sorry I need to correct this. I am still getting the "... failed to execute at its expected time. ..." notifications, Just now 1 hour and 2 minutes instead of 2 hours and 2 minutes later. I had some SMTP issues that I just solved to day.

Is there any logs or files I can provide you with?

JonasBonno commented 7 years ago

I just found out "By default Docker container use UTC timezone". Link: https://github.com/gnhuy91/til/issues/6

My minicron server container was running in UTC. Just ran "dpkg-reconfigure tzdata" inside my minicron server container matched it with the minicron.toml timezone I put to Europe/Copenhagen.

I am sure that this was my issue all along.