Skip to main content
December 19, 2008
Question

Scheduled Tasks CF 8.01

  • December 19, 2008
  • 1 reply
  • 418 views
I have ran into an issue where a scheduled task in CF Admin will say the task completed successfully but if I login to that specific address it will error out on that same .cfm page. My concern is that in the past when my developers have asked me to schedule a task my way of making sure it works was to see that "Task completed successfully message" Please help!!!
    This topic has been closed for replies.

    1 reply

    Inspiring
    December 19, 2008
    ClaytonCf8 wrote:
    > I have ran into an issue where a scheduled task in CF Admin will say the task
    > completed successfully but if I login to that specific address it will error
    > out on that same .cfm page. My concern is that in the past when my developers
    > have asked me to schedule a task my way of making sure it works was to see that
    > "Task completed successfully message" Please help!!!
    >

    Unfortunately that 'Task completed successfully message' does not mean
    much about any actual work. All a scheduled task is after all is a
    scheduled HTTP request to some URL. All that successful message means
    is that the URL was requested from a web server and ColdFusion received
    a response, any response with an HTTP status code of 200, from the web
    server.

    A ColdFusion error message is a valid http response with a status code
    of 200 as far as a web server is concerned. To know if the request
    template actually did what it was supposed to do one needs to look out
    the output. That is where the Publish 'Save output to a file' and
    'file' controls come in. You can save the output generated by the
    request URL to a location for review after the fact to see if any error
    message was received. Having the scheduled task generate log data
    either on it's own or into one of the ColdFusion logs is useful as well.