6 months ago
Setup my railway toml file and cron to run every 5 minute to meet requirements, but railway just isn't executing my cron job for some reason...
It's running the build stuff just fine
[build]
builder = "nixpacks"
buildCommand = "echo 'Building from railway.toml' && npm run build"
[deploy]
startCommand = "echo 'Starting from railway.toml' && npm run start:cron"
healthcheckPath = "/"
healthcheckTimeout = 100
[[cron]]
schedule = "*/6 * * * *"
command = "echo \"Running cron job at $(date)\" && curl -v -X GET $RAILWAY_PUBLIC_DOMAIN/api/cron/update-prices"
I see Building from railway.toml and 'Starting from railway.toml but never anything about my freaking cron job!
1 Replies
6 months ago
Hi there - I don't see any cron schedules in your settings in the UI
Status changed to Awaiting User Response Railway • 6 months ago
Status changed to Solved sarahkb125 • 6 months ago