« Another Path to American Security | Main | Migrating From HTML and Tables to XHTML/CSS: Removing 1-Column Tables »

Why Don't Scheduled Tasks Always Run As Scheduled?

I have a certain scheduled task configured to run once a day on my production server. It queries the database for a certain subset of users, then sends those users an email. It also writes the results to a log file that I then send to myself later that morning. It's very similar to several other scheduled tasks on the same server. So... why doesn't the task run at all? Nothing shows up in the log at all, despite the fact that I can run the task from my browser without error; there's nothing in the application log showing that an error occurred; and the Scheduler log shows that the task was executed and rescheduled.

The one anomaly that I do notice is that the scheduler log shows this particular task being rescheduled and then being executed, which happens with no other task. Does anyone have any tips or prior experience they can share?

Comments (4)

Hey Tom,

Have you tried deleting the scheduled task and recreating it? I think I remember seeing something like this before after one of the million upgrades I've done :)

Also -- I remember at one point having to do an occasional recycle of CF to get scheduled tasks to reinitialize (I think this was back in v6.1 though).

Hope that helps...

@Bernie: Thanks for the idea! I've definitely changed the task in the hope that it would be "re-initialized", but I hadn't tried to delete it and recreate it. I just did, so I'll see how it works tomorrow morning.

@Bernie: What do you know? That worked... the scheduled task ran this morning. I just hope it stays that way! ;)

Sweet! Glad I could help. I'll try to do my part by occasionally sending stability vibes out to your server. :)

Post a comment


Type the characters you see in the picture above.