cron not running as scheduled
Anonymous
TRIALOP

2 years ago

Hi there and thanks in advance for help

I've seen various posts regarding this but can't find an answer within them. The most recent run was manual 45 minutes after the scheduled run.

Cron is 0 21 * * *, should be running every night at 10pm my local time

I had this running perfectly hourly when i was at my PC, but when my PC was shut down overnight the job hadnt run.

Any advice on how to ensure the schedule persists and i dont need to keep checking it would be great

ProjectID: 1953b972-5402-489d-86ae-ce6957da4da8

Solved

22 Replies

brody
EMPLOYEE

2 years ago

You mention running hourly but your cron runs daily at 21:00 UTC?
can you provide a little more clarity here?


Anonymous
TRIALOP

2 years ago

sorry i changed the schedule after it was running successfully hourly


brody
EMPLOYEE

2 years ago

okay and have you had it skip a run at 21:00 UTC?


Anonymous
TRIALOP

2 years ago

yeah it didnt run last night so i ran it manually 45 minutes late which is why it appears successful


Anonymous
TRIALOP

2 years ago

ive also ran it manually several times today


brody
EMPLOYEE

2 years ago

hmmm 21:00 utc should not be a congested time of day


Anonymous
TRIALOP

2 years ago

i had this exact problem on a previous deployment


brody
EMPLOYEE

2 years ago

maybe it was a fluke, if it happens once more, report back and I will escalate this to the team


Anonymous
TRIALOP

2 years ago

i cant find my previous post though one sec


Anonymous
TRIALOP

2 years ago

i cant find my previous ticket unfortunately, but i expect it isnt a fluke as the behaviour is identical to a 6hourly cron i deployed a few months ago


Anonymous
TRIALOP

2 years ago

if you're easily able to see my previous tickets you might find a similar ticket


Anonymous
TRIALOP

2 years ago

it would have been on 5510af11-7ac6-4c46-b964-e91edd728850


brody
EMPLOYEE

2 years ago

as a community member i have no such access



Anonymous
TRIALOP

2 years ago

found it


brody
EMPLOYEE

2 years ago

are you still trying to run a bot on a cron?


Anonymous
TRIALOP

2 years ago

yeah i am


Anonymous
TRIALOP

2 years ago

is that really bad


brody
EMPLOYEE

2 years ago

why??


Anonymous
TRIALOP

2 years ago

im not a dev so probably through ignorance


Anonymous
TRIALOP

2 years ago

it just seemed that i wanted to trigger the bot to run as i would manually at specific times through the day


brody
EMPLOYEE

2 years ago

bots need to run 24/7 if you want to limit when your bot responds that needs to be done through code, absolutely do not use cron for this


Status changed to Solved Railway almost 2 years ago


Loading...