Cron not running from railway.toml ?
akilahjackson
HOBBYOP

4 months ago

I have 4 services each with a dedicated scheduled cron job from 1 monorepo. The services are clearly defined in railway.toml and their dashboards. Even though the confirmation says that there was a recent run of the cron, it's pretty obvious to me that the cron isn't actually running.

So now, I'm getting confused.

Are railway cron commands using the railway.toml or the dockerfile ?

I was able to execute my python module manually in the container for the service so I can confirm that the module is operational, but it appears that the cron isn't triggering it even though I can confirm each service is configured correctly in railway.toml (based on documentation).

[[cron]]
service = "hh-mvp-stack-short"
schedule = "0 16 * * *"
command = "/app/backend/db/run_migrations.sh && cd /app && python -m backend.worker.scheduler --mode short-term

Please advise

$10 Bounty

5 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!


Railway

Hey there! We've found the following might help you get unblocked faster: - [📚 Running a Scheduled Job](https://docs.railway.com/guides/cron-jobs) - [🧵 cron job not processing](https://station.railway.com/questions/cron-job-not-processing-fa4fa24d) - [🧵 Define Instance](https://station.railway.com/questions/define-instance-034d7513) If you find the answer from one of these, please let us know by solving the thread!

akilahjackson
HOBBYOP

4 months ago

It's pretty obvious that we need more support around Cron with this many threads started about it. None of these answers helped my situation.


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!


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.


Loading...