Cron not running
def1bro
HOBBYOP

a year 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

a year 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 12 months ago


Railway
BOT

10 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 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...