To ensure a successful execution of your schedule task, always include a small statement at the end of the script such as

<cfoutput>Script has been successfully executed</cfoutput>

This is because when Coldfusion executes the schedule task it wraps the script in a cfsavecontent tag and checks the length of the cfsavecontent variable. If the variable string has no length it errors and when Coldfusion server catches this error, it stops the execution of the schedule task.

An easy way to check if your schedule task is running correctly, go to Farcry Admin schedule task and select the View option for one of the schedule task. This will opens up a new window and the script is executed. If no error is produced, your script is working!

Post a Comment

*
*