My cron job stopped working for no reason
popoverx
HOBBYOP

a year ago

I have a cron job that runs every minute to fetch queued messages from an external endpoint, it has been working out really well, but yesterday it's stopped working for absolutely no reason

as you can see, it's started to redrive the message again because I've restarted the server.

Can you please check this is something on your end?

Closed

6 Replies

popoverx
HOBBYOP

a year ago

image.png

here's the screenshot for more context

Attachments


brody
EMPLOYEE

a year ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody over 1 year ago


brody
EMPLOYEE

a year ago

Hello,

This would be an application level issue.

Unfortunately we do no have any more observability into what your code is / is not doing than you would, thus we would recommend adding verbose logging to help you narrow down why your code stopped doing what it was supposed to.


popoverx
HOBBYOP

a year ago

Hello,
For more context, the last changes was 2 months ago, and everything was working well until yesterday. I don't believe this is an application level issue. How could the code suddenly have an error if there was no change?


brody
EMPLOYEE

a year ago

I'm sorry but we don't have any observability into what your code does or doesn't do, thus was have no way of answering what went wrong at your application level.


popoverx
HOBBYOP

a year ago

You keep saying it was at the application level, but I'm not talking about whether the code ran correctly not not. I'm saying it didn't run at all for a few hours yesterday and only started again after I restarted the server.

My question is: In the last 2 months, how can an application server error happen for a few hours and then fix itself without any code change (on my end), and after I restated the server (your end)


brody
EMPLOYEE

a year ago

If this was a question about why a Railway CRON job didn't run that would be a different story, but you are using an in-code cron scheduler and thus we have no way to tell you why your code didn't do what you expected it to, code change or not, best guess is that the code got into a bad state and locked itself up.

I'm sorry but we can't provide further assistance on this matter.


Status changed to Closed brody over 1 year ago


Loading...