Cron job not running
amirgolan6
PROOP

4 months ago

My cron job stopped running even though it previously worked correctly.
Nothing was changed in the repository except normal code updates.

Service Configuration

Cron Schedule:*/5 * * * * (every 5 minutes)

Build & Start Commands (nixpacks.toml)

[phases.setup]
nixPkgs = ["python312"]

[start]
cmd = "python start-job.py"

Problem

The cron job used to run normally, but now it no longer triggers at all.
The service does not start at the scheduled intervals.

What I Checked

  • No errors appear in logs at the scheduled times — there are no runs at all, as if the cron isn’t firing.

  • The cron expression is valid.

  • The code runs successfully when manually deployed or started.

  • Serverless mode is enabled (default), but cron should still wake the service.

  • Increasing resources didn’t help.

Solved

13 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


amirgolan6
PROOP

4 months ago

Its not helping at all, I also see other tickets about this issue. Anyone faced it?


amirgolan6
PROOP

4 months ago

Any help on this?



Railway
BOT

4 months ago

Hello!

We're acknowledging your issue and attaching a ticket to this thread.

We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.

Please reply to this thread if you have any questions!


4 months ago

Attaching this to an ongoing investigation we're having!


Status changed to Awaiting User Response Railway 4 months ago


amirgolan6
PROOP

4 months ago

Is this a known issue?


Status changed to Awaiting Railway Response Railway 4 months ago


4 months ago

Currently cron related issues are under investigation and unfortunately we do not have an ETA to share yet.

Please note that we do not guarantee cron jobs will be executed on the dot; there may be a slight delay of up to a few minutes from the time it's scheduled to run, including when you invoke it through the "Run now" button. A few minutes of delay is normal, but a delay of more than 10~15 minutes is not.


Status changed to Awaiting User Response Railway 4 months ago


waresa
PRO

4 months ago

Hi,
We are having similar issues, we have a few crons that are vital to our production system which are not running since an hour ago now. Would appericiate some help asap


Status changed to Awaiting Railway Response Railway 4 months ago


waresa

Hi,We are having similar issues, we have a few crons that are vital to our production system which are not running since an hour ago now. Would appericiate some help asap

4 months ago

Hello,

Please create your own thread for that so we can track issues separately.


Status changed to Awaiting User Response Railway 4 months ago


3 months ago

Hello,

An update: We have made several changes to our CRON scheduling system, and from our internal metrics, we have seen this make a massive improvement in CRON execution delay and have eliminated missed CRONs. Additionally, the Run Now button starts the job much faster.

But please let us know if this isn't the case for you!

Best,
Brody


Railway
BOT

3 months ago

🛠️ The ticket Scheduling Inaccuracy Issue has been marked as in progress.


Railway
BOT

3 months ago

✅ The ticket Scheduling Inaccuracy Issue has been marked as completed.


Railway
BOT

3 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 3 months ago


Loading...