Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DST causing tasks to run twice. #28

Open
clockwinder opened this issue Mar 13, 2022 · 2 comments
Open

DST causing tasks to run twice. #28

clockwinder opened this issue Mar 13, 2022 · 2 comments

Comments

@clockwinder
Copy link

I'm using aiocron as part of a simple bot that sends reminders. I currently have a VM with Ubuntu running a python script which sends a reminder at _1000 and _1200 and my log normally looks like this:

Wordle reminder sending...
Wordle reminder Sent.
AutoQOTD sending...
AutoQOTD Sent.

But today is the first day after a DST change, and the first function was sent at _9000 and again at _1000, and the second function was sent at _1200 and _1300. So my log ended up looking like this:

Wordle reminder sending...
Wordle reminder Sent.
Wordle reminder sending...
Wordle reminder Sent.
AutoQOTD sending...
AutoQOTD Sent.
AutoQOTD sending...
AutoQOTD Sent.

I haven't added log timestamps because I would have to restart the script and I didn't want to (temporarily) fix this issue before I collect any necessary info related to fixing this problem.

Is this a known problem? Is there more info I can provide on my situation? Have I implemented aiocron incorrectly to cause this issue?

@gawel
Copy link
Owner

gawel commented Mar 14, 2022

It's a known bug. See #7

@clockwinder
Copy link
Author

Glad to know it's already noted.

In case it's helpful information, my program using aiocron has been running for days and after yesterdays issue, it seems that today aiocron is working correctly again. I only got one instance of each function as was expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants