Skip to main content
Inspiring
November 6, 2013
Question

Scheduled Tasks Stop Working Suddenly

  • November 6, 2013
  • 1 reply
  • 1317 views

We have ColdFusion 10 installed on Windows Server 2008 with IIS 7.5.

We are running one additional instance of Coldfusion seperate from the cfusion instance but on the same physical server. Our scheduled tasks, on this instance, had been running without any problems for quite some time now. Suddenly about 3 weeks ago after a server reboot our tasks stopped running. We have tried everything including writing the output to a log file. The only thing that gets written to this log file is "Connection Failed".

Driling down into some of the other CF logs we are seeing that the job is getting triggered and then the job starts but it never gets completed.

Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Task DEFAULT.sampleTask triggered.

Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Starting HTTP request {URL='https://ru.ryerson.ca:443/ryecast/myTask.cfm', method='get'}

The weird thing is that if we create the same task in the instance manager (cfusion) on the same server pointing to the same .cfm file it works fine. So we know the script does work - just not in the ColdFusion Instance we need to work in.

Here is the successful log entry from cfusion logs.

Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Task DEFAULT.sampleTask triggered.

Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Starting HTTP request {URL='https://ru.ryerson.ca:443/ryecast/myTask.cfm', method='get'}

Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - HTTP request completed  {Status Code=200 ,Time taken=124 ms}

Has anyone else experience this kind of behaviour and if so is there a fix? I suspect some kind of corruption with the QuartzScheduler.

This topic has been closed for replies.

1 reply

Inspiring
December 3, 2013

Hi Marko,

Did you ever find a solution to your problem?

I'm having the same problem, but am running CF on redhat linux.

I too think it's something with quartz getting itself tied in knots.

In my http.log I can see the same as you, the task is triggered but it never completes. The strange thing I have found is that sometimes just resaving a task is enough to start it again.

Here's the thread I started http://forums.adobe.com/message/5811970#5811970

Cheers

Simon

Inspiring
December 3, 2013

No solution yet Simon. We are still running the task under the cfusion (instance manager) without any problems. It just won't run under our instance that our main application runs on.

I'll follow your thread so see how it progresses.

- Mark