Ciaran Archer
Ciaran Archer

Reputation: 12446

ColdFusion 8 scheduler not rescheduling task

I have just done a clean install of CF8 on a Windows 2000 machine. I have a scheduled task I need to run every 15 minutes on this machine, and the machine does little else.

The task is set up as normal through CF admin, but for some reason, when the task takes about 5 minutes to run it will complete fine (I can see this from debug output and from cfstat) but the scheduler will not reschedule the task.

The scheduling log shows that the task started to execute, but not entry that it was rescheduled. Eg:

[ProcessRecords] Executing at Wed May 20 10:30:00 BST 2009 

I have been over my server timeouts. I have NO timeout in CF admin and this particular script has a <cfsetting requesttimeout="43200" /> tag set. There are no exceptions in the console logging. The last bit of console logging is the very last debug statement in my .cfm template.

I do notice that task that run in a shorter time, say for example under a minute, will reschedule as normal.

Has anyone come across a problem like this before?

I'm baffled. Any and all replies are appreciated!

Cheers, Ciaran

Upvotes: 3

Views: 1057

Answers (1)

rip747
rip747

Reputation: 9455

not for nothing, but i've never seen anything like this with cf8. are you sure that you have the latest hotfix and jvm installed? this might have been something in cf8 that was fixed in 8.01.

hotfix 2 for cf8.01

list of all hotfixes and updates for cf8.01

hotfix 3 for cf8

list of all hotfixes and updates for cf8

latest jvm

upgrade instruction for jvm

If you suspect that it's an uncaught exception causing the issue, then might I suggest logging portions of the process. Case in point, I had a similar problem with a scheduled task where it would just bottom out for no reason (never had the reschedule problem though). What I ended up doing to diagnose the problem was use cflog to write out portions of the process as they completed. This particular task too about 4 minutes to complete but ran through about 200 portions (it was a mass emailer for a bunch of clients).

I logged the when the portion started and completed along with how log it took. By doing so, i could see what portion would trip up the whole process and knew where to focus my attention.

Upvotes: 4

Related Questions