Cron Job Not Executing Anymore
bdoooh
HOBBYOP

10 days ago

The cron feature was working just fine yesterday, today none of them ran. When I try to run the cron manually through the UI.. I get the following error.

"Failed to invoke cron execution

We were unable to start your cron execution. If this error persist, please contact support."

My settings are below. There's been no code changes and this has been working for months now.

Any thoughts?

{
  "$schema": "https://railway.com/railway.schema.json",
  "build": {
    "builder": "RAILPACK",
    "buildCommand": "npx tsup jobs/poll-darkpool.ts"
  },
  "deploy": {
    "startCommand": "node dist/poll-darkpool.js",
    "restartPolicyType": "ON_FAILURE",
    "restartPolicyMaxRetries": 5
  },
  "environments": {
    "production": {
      "deploy": {
        "cronSchedule": "*/5 12-23 * * 1-5"
      }
    }
  }
}
Solved

11 Replies

Railway
BOT

10 days 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!


Railway

Hey there! We've found the following might help you get unblocked faster: - [🧵 Unable to run cron jobs manually](https://station.railway.com/questions/unable-to-run-cron-jobs-manually-56bfe142) - [🧵 Failed to invoke cron job](https://station.railway.com/questions/failed-to-invoke-cron-job-4c63e704) - [🧵 Unable to trigger manual cron run](https://station.railway.com/questions/unable-to-trigger-manual-cron-run-3b69412a) If you find the answer from one of these, please let us know by solving the thread!

bdoooh
HOBBYOP

10 days ago

I don't think so, I am seeing other people with similar issues though with unresolved tickets per some of those threads


bdoooh
HOBBYOP

10 days ago

Alright seems like if I remove that JSON all together and configure everything through the UI, it works?


jayptookmyjayp
HOBBY

10 days ago

did you solve this? i'm experiencing the same situation


jayptookmyjayp
HOBBY

10 days ago

oh i did the same (removing JSON and configure with UI) and it worked. I think Railway team should inspect this


jayptookmyjayp

oh i did the same (removing JSON and configure with UI) and it worked. I think Railway team should inspect this

bdoooh
HOBBYOP

9 days ago

Agreed. It seemed to break yesterday morning. Was working all day long on the 12/4 just fine.


Railway
BOT

9 days 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!


echohack
EMPLOYEE

9 days ago

Hey there!

I do see that we are working internally on crons specifically for Metal Builders and that your cron might have been effected, but that has already been fixed.
Please reopen if you're seeing issues again!

Best,
Railway Support


Status changed to Awaiting User Response Railway 9 days ago


Status changed to Solved echohack 9 days ago


Railway
BOT

9 days ago

✅ The ticket Scheduled Task Issues has been marked as completed.


Railway
BOT

9 days ago

✅ The ticket Scheduled Tasks Issue has been marked as completed.


Railway
BOT

9 days ago

🛠️ The ticket Scheduled Tasks Issue has been marked as triage.


Loading...