CRON Job Not Executing
tfx01
PROOP

7 months ago

Hi guys, we have set up 2 crons jobs, at first they were running fine, then when it came the day to be runned, they didnt, and when i tried to run it, it showed this error message:

Failed to invoke cron execution

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

Its been days and i still cannot run them.

Solved

7 Replies

ray-chen
EMPLOYEE

7 months ago

Can you link directly to the deployment/run that shows the error message? I'm unable to find it from the deployment you linked to this thread.


Status changed to Awaiting User Response Railway 7 months ago



Status changed to Awaiting Railway Response Railway 7 months ago


ray-chen
EMPLOYEE

7 months ago

Your cron schedule uses a non-standard expression: 0 22 L * *

L isn't supported. I'd recommend swapping it to 0 22 28 * *


Status changed to Awaiting User Response Railway 7 months ago


tfx01
PROOP

7 months ago

Oh, thanks, now it worked, i tested pressing "Run now", but i really need the last day cron, cause we only need to run it in the last day of the month, what should i do?


Status changed to Awaiting Railway Response Railway 7 months ago


brody
EMPLOYEE

7 months ago

You would need to use an in-code scheduler in that case.


Status changed to Awaiting User Response Railway 7 months ago


tfx01
PROOP

7 months ago

Ok guys, thanks for the help, i will refactor the code to run in the first day of the month, since "0 0 1 * *" worked!


Status changed to Awaiting Railway Response Railway 7 months ago


brody
EMPLOYEE

7 months ago

Sounds good!


Status changed to Awaiting User Response Railway 7 months ago


Status changed to Solved brody 7 months ago


Loading...