Skip to main content
Participant
April 27, 2011
Question

ColdFusion scheduled task not running

  • April 27, 2011
  • 2 replies
  • 1246 views

Hi,

We're running CF8 Enterprise (two instances) on a Solaris server. I have a scheduled task I set up to send email reminders every morning at 4 AM. If I go into the CF Administrator and run the task manually (e.g. click on the icon that says "Run Now") it runs just fine and everyone gets their email reminders. However when left to its own devices, the task never runs and nobody gets their email reminders. I've tried both deleting the task and re-adding it and deleting it from the first instance and adding it to the second instance, all with the same result. I checked the scheduler log file, and I don't see any errors; relevant lines are:

"Information","scheduler-2","04/27/11","04:00:00",,"[Email Reminders] Executing at Wed Apr 27 04:00:00 EDT 2011"
...
"Information","scheduler-9","04/27/11","04:05:25",,"[Email Reminders] Activating2 on Wed Apr 27 04:05:25 EDT 2011 To run on Thu Apr 28 04:00:00 EDT 2011"

I would appreciate any insights anyone would have.

Thanks!

~ Amanda

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    June 23, 2011

    Were you able to solve this issue yet? I have fun into the same issue and solved it by importing our SSL certificate into CF's keystore using Certman. If you are not using SSL then disregard my comment but I thought I'd post in case it helps.

    Known Participant
    April 27, 2011

    Hi Amanda,

    from your first line of your log seems that the scheduled task has been executed, it's missing a line where the task is scheduled again for the next day but maybe you omitted it

    You should have another line like this:

    "Information","scheduler-2","04/27/11","04:0X:00",,"[Email Reminders] Rescheduling for Thu Apr 28 04:00:00 EDT 2011 Now: Wed Apr 27 04:0X:00 EDT 2011"

    Anyway, from the logs the scheduled task seems to be executed, i suggest you to go in the scheduled task configuration and check the "Save output to a file" checkbox, define a path to a file in the "File" field below, to print the output of your scheduled task, and after the the task has been executed try to look if the file it's created, and it's content

    Bye