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

Scheluded jobs missfire #104

Closed
piotrszpruta opened this issue Sep 13, 2022 · 4 comments
Closed

Scheluded jobs missfire #104

piotrszpruta opened this issue Sep 13, 2022 · 4 comments

Comments

@piotrszpruta
Copy link

Scheluded jobs run 2 hours later than expected. For example:
It should run every working day at 6:00 (6:00AM) cron expression: 0 6 * * 1-5 - but it runs at 8AM

Tried already with seconds also, but no luck. Any help?

@atifaziz
Copy link
Owner

atifaziz commented Oct 5, 2022

NCrontab does not do any job scheduling. It simply evaluates a crontab expression and computes occurrences of the represented schedule. I would look for time zone offset as a potential source of issue.

@piotrszpruta
Copy link
Author

@atifaziz I don't see any stuff related to time zone in NCrontab documentation, or you think of different method?

@atifaziz
Copy link
Owner

atifaziz commented Oct 5, 2022

That's right, not in NCrontab; it's agnostic. My suggestion was to look elsewhere, perhaps in the (job scheduling) code using NCrontab, and I was thinking of time zones because the two hours difference you mentioned sounds typical of a time zone offset/translation issue.

@atifaziz
Copy link
Owner

atifaziz commented Oct 6, 2022

I'm going to close this an issue external to NCrontab. Feel free to re-open if you can demonstrate with code that it's a bug in NCrontab.

@atifaziz atifaziz closed this as completed Oct 6, 2022
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