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

Cron tasks executed twice and at wrong local time #23992

Open
RamonBeast opened this issue Dec 19, 2022 · 2 comments
Open

Cron tasks executed twice and at wrong local time #23992

RamonBeast opened this issue Dec 19, 2022 · 2 comments

Comments

@RamonBeast
Copy link

Steps to reproduce:

  1. Create a cron task
  2. Set the mask time at: 0 0 * * * with 0 offset
  3. Task is executed twice: once at midnight UTC and once at midnight UTC + (or -) local time offset. So if the local time is UTC+3 the second execution will happen at 03:00AM local time

Expected behavior:
One execution at the correct time.

Actual behavior:
Tasks are executed twice, once at utc_time and the second at utc_time + tz_offset

Environment info:

  • System info: happens on all environments for me
  • InfluxDB version: 2.5.1

This issue, in similar forms, has been reported several times at #20922, #20353, #23257 one user went to extreme lengths to try and address it by himself in this Daily task in different timezone thread in the community forum. All these issues seems to stem from the same place, but no answer has ever been given, though the issue seem to persist since at least 2020.

@linc5403
Copy link

linc5403 commented Feb 1, 2023

Still no answer has ever been given...

@RamonBeast
Copy link
Author

And none is expected for the next 2-3 years I guess.

Meanwhile my workaround has been to create a separate script that every day removes unwanted data points, not efficient, not clean but that's how it is.

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