tracker issue : CF-3336193

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: cfschedule runs tasks on exclude'd dates

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 09/24/2012

Components: Scheduler

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Windows 7 SP1 64-bit

Vote Count: 0

Duplicate ID:	CF-3491695

Related Bugs:
CF-3491695 - Similar to


cfschedule does not skip excluded dates

Repro:

<cfscript>
  dateStart = dateAdd("s", 10, now());
  dateExclude = dateAdd("s", 10, dateStart);
  dateEnd = dateAdd("s", 10, dateExclude);
</cfscript>
<cfschedule action="update" task="myTask" startdate="#dateStart#" starttime="#dateStart#" enddate="#dateEnd#" endtime="#dateEnd#" interval="5" url="http://a" exclude="#dateExclude#" />
<cfschedule action="list" task="myTask" result="q" />
<cfdump var="#q#" />

Actual Result (from scheduler.log):
"Information","DefaultQuartzScheduler_Worker-1","09/24/12","23:52:05",,"Task DEFAULT.myTask triggered."
"Information","DefaultQuartzScheduler_Worker-2","09/24/12","23:52:10",,"Task DEFAULT.myTask triggered."
"Information","DefaultQuartzScheduler_Worker-3","09/24/12","23:52:15",,"Task DEFAULT.myTask triggered."
"Information","DefaultQuartzScheduler_Worker-4","09/24/12","23:52:20",,"Task DEFAULT.myTask triggered."
"Information","DefaultQuartzScheduler_Worker-5","09/24/12","23:52:25",,"Task DEFAULT.myTask triggered."

Expected Result:
"Information","DefaultQuartzScheduler_Worker-1","09/24/12","23:52:05",,"Task DEFAULT.myTask triggered."
"Information","DefaultQuartzScheduler_Worker-2","09/24/12","23:52:10",,"Task DEFAULT.myTask triggered."
"Information","DefaultQuartzScheduler_Worker-4","09/24/12","23:52:20",,"Task DEFAULT.myTask triggered."
"Information","DefaultQuartzScheduler_Worker-5","09/24/12","23:52:25",,"Task DEFAULT.myTask triggered."

The task runs every 5 seconds. It should run twice, then skip once, then run twice. Currently it runs all 5 times.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3336193

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

The exclude date should be given in the format mm/dd/yyyy
Comment by Himavanth R.
17964 | November 14, 2012 04:13:46 AM GMT
Hi Himavanth, Did you look at neo-cron.xml? Input: exclude="#createDateTime(2013, 1, 28, 2, 0, 10)#" Output: 2013-01-28T02:00:10+00:00 Besides, "mm/dd/yyyy" doesn't even include time portion (hh:mm:ss). Additionally, cfschedule doc says "The default date format is mm/dd/yy." (NOT mm/dd/yyyy) for startdate & enddate. Two things: 1) This bug still exists (cfschedule ignores exclude'd dates). 2) Default date/time format for exclude should be documented. Thanks, -Aaron
Comment by External U.
17965 | January 27, 2013 08:46:17 PM GMT
Thanks, Himavanth, for the discussion. #CF-3491695 has been filed for time support in cfschedule's exclude attribute. Implementing #CF-3491695 will resolve this ticket. Thanks!, -Aaron
Comment by External U.
17966 | January 29, 2013 02:28:13 AM GMT
"The exclude date should be given in the format mm/dd/yyyy" Err, come *on*... This is a CFML 101 fail. Dates should be passed as *dates* not as strings. Are you telling me one cannot pass an actual date object as a value for a date attribute? -- Adam
Comment by External U.
17967 | August 22, 2013 09:49:12 AM GMT
Closing bug as it is a duplicate of bugCF-3491695 (Comment added from ex-user id:vnigam)
Comment by Adobe D.
17968 | December 20, 2013 04:31:53 AM GMT