In a follow-up to yesterday’s post about a bug with scheduled tasks in ColdFusion Administrator, I decided to see if the same bug existed if you used the <cfschedule> tag.
And I can confirm it does, at least on Adobe ColdFusion 8 developer edition.
This code replicates it. Setting a one-time only scheduled task with a start date/time in the past. The task runs immediately.
<cfschedule action="UPDATE" task="TestTask" operation="HTTPRequest" startDate="#CreateDate(2009, 04, 01)#" startTime="21:00" url="http://127.0.0.1:8500/TestTask.cfm" interval="once">
And similar to the problem with scheduled tasks in CF Administrator; if you create a one-time scheduled task to run in the future, then update it to be in the past, it will run immediately.
I’ve reported this as a separate bug.




