4 Replies Latest reply on Nov 9, 2010 1:54 PM by tclaremont

    Scheduled Tasks not running

    WestSide Level 1

      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

        • 1. Re: Scheduled Tasks not running
          ilssac Level 5

          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.

          • 2. Re: Scheduled Tasks not running
            WestSide Level 1

            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

            • 3. Re: Scheduled Tasks not running
              ilssac Level 5

              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.

              • 4. Re: Scheduled Tasks not running
                tclaremont Level 2

                1) Check the box to output the results to a file.

                2) Schedule the task to run five minutes from now.

                3) In six minutes, open the text file indicated in step one.

                 

                I bet the text file points you to a permissions issue.