Replies: 3 comments 3 replies
-
Not sure if this is the recommended answer, but I'd personally use a asycnhronous @aiocron.crontab('0 0 * * *')
async def attime():
print('run') Would run every day at |
Beta Was this translation helpful? Give feedback.
-
That warning is because the task woke up earlier than the expected time and needs to correct itself. It usually means either asyncio woke up too early or your clock is out of sync. There's nothing really I can do here other than print a warning to tell you that something is up with your clock and try to correct it. It is a tad bit odd to see this print more than once though. |
Beta Was this translation helpful? Give feedback.
-
I'm getting a similar warning as well. I have two time scheduled tasks that pop this twice warning twice everyday since moving into Docker. It didn't do it beforehand but started in Docker. My container is running in UTC and the task is scheduled in Americas/New_York. That might be related. |
Beta Was this translation helpful? Give feedback.
-
getting tons of this warning just before the task actually happens. my task would be run in 12:00 am. but it woke up at 11:59 pm and keep saying "sleeping until to correct clock"
my code:
Beta Was this translation helpful? Give feedback.
All reactions