Delayed cron execution for scheduled task

0

I have a scheduled task set to run Monday-Friday at 9am and 9pm EST. This past Friday night, the task appears to have triggered based on the CloudWatch metrics for it, but the logs for the task did not appear until Sunday at 9pm. Is this delay expected when using scheduled tasks in ECS? If not, is there a way to tell why the delayed execution occurred? If it is expected, is there a way to control it more granularly?

已提问 3 年前327 查看次数
1 回答
0

After some digging, it seems that this is related to timezones. Our code has a check for hours to run, and due to the UTC timezone that the scheduled tasks run under, there is a conflict.

已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则