Duncan's blog

April 15, 2009

CFSchedule bug

Filed under: Coldfusion — duncan @ 8:06 pm
Tags: , , , , ,

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.

Advertisements

4 Comments »

  1. 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 | Reply

  2. 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 | Reply

  3. 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 | Reply

  4. 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 | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: