Python chron job won't be marked as done even though it finished
cbalanean14
PROOP

2 years ago

Everything was working well for 3 months and now, the same job won't finish, even when having a critical error it won't stop and keep running indefinitely wasting cpu and not start the next job. Please help this seems to be a infrastructure problem. We tried everything we could ran everything locally and recreated the service completely.

14 Replies

cbalanean14
PROOP

2 years ago

Project id 9bc43410-5b99-4bfa-8b24-9598bb1e0276 Deployment id ecb36898-b8d9-4ad6-a1db-a0963fbad496


2 years 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.


2 years ago

Hey, just wondering how you have determined that it both finished and exited?


cbalanean14
PROOP

2 years ago

Because even when having an uncaught error it will not stop and that made me think of this, but if this isn't enough, we also created a dummy repo with only a python script that prints hello world :))) https://github.com/cbalanean14/DummyPythonScript and ran it and it doesn't exit


cbalanean14
PROOP

2 years ago

and beware of the fact that the app worked for 3 months with no problems with cron jobs every 30 min and we didn't change anything deployment id: ada4c68f-3bbe-4b71-9922-3bd6e99eb5d0

Maybe it's an issue with the fact that railway still sees the container as active i don't know maybe it exits maybe not but what we know is that it;'s marked as active and future crons are skipped


2 years ago

Could you please attach some screenshots of that repo running as a cron job?


cbalanean14
PROOP

2 years ago

sure, now I see that new jobs aren't marked as skipped either weird, cron is every minute


2 years ago

You can not run jobs every minute.


cbalanean14
PROOP

2 years ago

I run them every 30 min it was an example for testing purposes what is the min amount that you want me to test I will do it


cbalanean14
PROOP

2 years ago

ok 15 min then it will be will respond once i test


2 years ago

I think it's 5 minutes for Hobby users.


cbalanean14
PROOP

2 years ago

This is very weird now it works hmm maybe it's a github web hook issue I don't understand because when updating the service to fix an error the cron job wouldn't run anymore I don't know something happened but now that I messed up with removing the github deployment and resetting the cron job somehow it works again very weird


cbalanean14
PROOP

2 years ago

Anyway thanks maybe there is a bug maybe there isn't but now it works :))


2 years ago

Awesome, in the future, please do not open private posts unless you need to share sensitive information with the team.


Loading...