Skip to main content
Inspiring
November 2, 2010
Question

Scheduled Tasks not running

  • November 2, 2010
  • 1 reply
  • 2289 views

Hi,


I have a few scheduled tasks that just don't run anymore.  I'm using CF 9.01.  There isn't an error in the code, as I can run the tasks directly but they are scheduled and just don't run.  How can I find out why they aren't running?


Thanks,

-Westside

This topic has been closed for replies.

1 reply

ilssac
Inspiring
November 2, 2010

1) Do you have Schedule Task loggin turned on?  Have you looked at that log file?

2) Have you in looked into the Application Log? The Exception Log? The ColdFusion-out Log?

3) Have you configured the Scheduled task to capture any output generated by the web server and write that to a file?  Have you looked at that file?

98.432% of the time one hears of a ColdFusion schedule task that runs fine when a user requests the URL but not when ColdFusion does, it is a permission issue.

WestSideAuthor
Inspiring
November 2, 2010

Hi,

Thanks for the reply.

If you run the task from within ColdFusion, you are running it as the ColdFusion user correct?  If so, my tasks run fine from within CF Admin, so I'm not sure if it's a permission isssue.

I will try the steps you outlined to see if I can get any more insight on to why they aren't running.

-WestSide

ilssac
Inspiring
November 2, 2010

WestSide wrote:

Hi,

Thanks for the reply.

If you run the task from within ColdFusion, you are running it as the ColdFusion user correct?

Interesting question.  I have always thought NO, you are running it with the permissions you have logged into the browser with.  But I am not sure about the 'run' button in the Scheduled task tool.

But, if you where to capture the output of the schedule task, that usually becomes instantly clear since the output would be a message about not having permissions to the resource.