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.





From what I can tell, this isn’t a bug. It’s documented in their docs:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_r-s_11.html
Comment by DMA — August 26, 2009 @ 2:06 pm |
Yes, you’re absolutely correct. I first encountered this as a problem with scheduled tasks in the Administrator, where this ‘feature’ isn’t really documented:
http://livedocs.adobe.com/coldfusion/8/htmldocs/basiconfig_22.html
Then I discovered the same thing happening with CFSchedule, but I didn’t bother checking the documentation to discover it’s actually supposed to do this.
To be honest, it makes sense with CFSchedule, but if using Administrator, it just seems wrong. Thanks for your comment.
Comment by duncan — August 26, 2009 @ 6:54 pm |
the problem with scheduled tasks in CF Administrator; if i create a recurring scheduled task to run in the future, then update it to be in the past, it will run immediately.
Comment by thangapandyan — March 11, 2010 @ 4:07 am |
Setting a one-time only scheduled task with a start date/time in the Future. The task runs immediately
Comment by Thangapandyan — March 22, 2010 @ 5:53 am |