-
Notifications
You must be signed in to change notification settings - Fork 627
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 job triggering whenever it wants #918
Comments
Hi, Thank you for raising this issue and providing detailed information. I've created a minimal reproduction repository for this case to verify whether Results from the TestsAfter running multiple tests through this repo, the behavior you mentioned does not arise:
You can find the reproduction repository here: I recommend pulling down the minimal reproduction repository and trying it within your environment directly. If the issue persists or if you notice any anomalies while testing it in isolation, please share the findings and we’ll dig deeper. |
Thank you for reproducing my issue. I will compare the data from my repository to yours. |
Has it been tested on Ubuntu as well? |
The Test works on my machine as well but again, its Windows, not Ubuntu |
Yes, I'm working on Ubuntu! |
I will be testing it on my machine and I will give you feedback if it triggered consistently |
Hi, last week my server crashed and I had nothing to report, this week it was executed at 6 pm on Tuesday, if it will trigger next week at the same time then I will give you feedback and close this ticket! |
I tested it directly on my VM Linux Machine and the tests passed, I will keep an eye on it as well |
Closing for stale, feel free to reopen with more detail if this keeps occurring :) |
Description
I want my cron job to trigger on a Tuesday every week at 6pm, for that I created a new cronjob that does that, but it triggers whenever it wants, I tried different methods in usage but it still doesn't trigger on the time I want it to trigger.
Note: after 10 weeks it triggered yesterday at 6pm 12/11/2024
Here is the code:
Note that the code within my EventHandler is not the one which doesn't execute, I tried on my system before.
The system on which the discord bot is at is ubuntu
cron job version: 2.4.0
Expected Behavior
execute at 6pm on every week on a Tuesday
Actual Behavior
executes on a Sunday, Monday, Thursday, Friday at different times like 22:54, 20:32, 17:56 and some other times
Possible Fix
I am not sure why it occurs
Steps to Reproduce
use the same code and change the event handler to a console.log or something else
Context
I want my users to get notified at 6pm on a Tuesday every week
Your Environment
cron
version: 2.4.0The text was updated successfully, but these errors were encountered: