Cron not running
def1bro
HOBBYOP

9 months ago

Cron is scheduled to run every 2 mins
The counter shows up but when it hits 0 nothing happens, when I do click on run cron it says failed and if problem persists contact support

It is a NestJS service, Dockerized
I read that I need to close all connections and I do that , you can see the logs

Solved

1 Replies

echohack
EMPLOYEE

9 months ago

Hiya def1bro,

Looks like your container is not sending the SIGINT signal (it's not cleanly exiting) and thus the container is staying alive. Then, when the cron is scheduled to run again, it fails due to the still alive container.

Properly exiting the container will shut it down and allow it succeed on the next run.

Best,

Railway Support


Status changed to Awaiting User Response Railway 9 months ago


Railway
BOT

7 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 7 months ago


Loading...