Basic Questions about Railway Cron
a-bmt02
PROOP

a year ago

Should i enable Serverless for my Cron Job since it runs onces a day? Aslo apart from setting the Cron Schedule , What else do i need to do to activate the crons.

Its a node server and i set the Cron Schedule to 0 3 * * *

Solved

9 Replies

a-bmt02
PROOP

a year ago

N/A


a year ago

we do not allow you to enable serverless when you have a cron set, and vice versa.

when using a cron, the service is already not running when its not running.


a-bmt02
PROOP

a year ago

Thats fair. So i guess i'm only going to be charged once a day when the cron is actually running ?

I have a route in my node server. How do i tell railway cron what route to run?


a year ago

yep you are only charged for the time your service is running.

you set the start command, the start command is what will be ran


a-bmt02
PROOP

a year ago

Got it

You mean the start command in my package.json file?


a year ago

that, or the start command in the service settings


a-bmt02
PROOP

a year ago

Thanks again brody


a year ago

no problem!


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...