R
Railway•8mo ago
DataDius

Cron job not running at specific time

Hi I have a cron job that should run every hour 0 * * * *. For some reason, it skips runs sometimes. In the attached picture, it skips 10 PM and 3 AM, but I had cases in which it skipped 3 hours straight. The cron job takes data from a sql database every hour and sends an alert based on a condition. Is there any documented reason for this happening? I have another job that is scheduled to run every 5 minutes and it does so without any issues, there are no runs skipped. Project ID:c84bb5be-0280-4c9f-92d4-910475505789
No description
Solution:
This is probably due to their over scheduling bug, until that's fixed it might be best to temporarily swap to an in code scheduler
Jump to solution
10 Replies
Percy
Percy•8mo ago
Project ID: c84bb5be-0280-4c9f-92d4-910475505789,3e9fe10e-2b44-4059-a249-99d6ee4d3165
DataDius
DataDiusOP•8mo ago
I also didn't get the PRO Role even though I made a team for the PRO Plan
Solution
Brody
Brody•8mo ago
This is probably due to their over scheduling bug, until that's fixed it might be best to temporarily swap to an in code scheduler
Brody
Brody•8mo ago
yeah the bot is a little silly at times, show me some form of proof and I'd add the badge for you
DataDius
DataDiusOP•8mo ago
Railway Help Station
Cron job not running at specific time
Hi I have a cron job that should run every hour 0 * * * *. For some reason, it skips runs sometimes. In the attached picture, it skips 10 PM and 3 AM, but I had cases in which it skipped 3 hours straight. The cron job takes data from a sql database every hour and sends an alert based on a condition. Is there any documented reason for this ...
No description
DataDius
DataDiusOP•8mo ago
thanks, much appreciated. First thing I will try is to run it one minute later, at 1 * * * * and then I will switch to a code scheduler. That's actually how it was implemented before I tried the cron option
Brody
Brody•8mo ago
if it worked, railway's cron would be better since that means no idle resources
DataDius
DataDiusOP•8mo ago
yup, exactly. That's why I switched
brunocascio 🌴
brunocascio 🌴•6mo ago
hello everyone, the cron schedule is still buggy? I've seen my cronjobs all skipped since today
Brody
Brody•6mo ago
I haven't heard of any big improvements so I would assume that yes it's still buggy
Want results from more Discord servers?
Add your server