-
Notifications
You must be signed in to change notification settings - Fork 81
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
Ignore scheduling if DESTALINATOR_RUN_ONCE is used #156
Comments
Relevant lines: https://github.com/randsleadershipslack/destalinator/blob/master/scheduler.py#L47 My guess is you updated settings.yml to remove schedule_hour? |
I have |
Interesting... what is the error message you're getting? |
|
Very weird. This is with something like |
Exactly. But, there are a couple other differences:
|
Looks related to agronholm/apscheduler#87. I don't think this bug has anything to do with RUN_ONCE, but we could skip the scheduler all together and avoid this with RUN_ONCE. |
Also fixed by setting /etc/timezone in Dockerfile: https://serverfault.com/questions/683605/docker-container-time-timezone-will-not-reflect-changes |
But I still don't think the scheduler should care about timezone if no scheduling is being done. |
Agreed. Sending a MR shortly. |
MR: #157 |
Scheduler still cares about local timezone on container/server and will fail if not set, even if DESTALINATOR_RUN_ONCE is set. All scheduling should be ignored (and code not run) if DESTALINATOR_RUN_ONCE is set.
This is relevant when running Destalinator as a Kubernetes ChronJob that handles the scheduling.
The text was updated successfully, but these errors were encountered: