tracker issue : CF-3336197

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

[ANeff] Bug for: cfschedule false exception says trigger will never fire

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

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

Created: 09/24/2012

Components: Scheduler

Versions: 10.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: Final /

Priority/Frequency: Trivial / Few users will encounter

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

Vote Count: 0

In the following examples, cfschedule falsely throws an exception stating the trigger will never fire.

Repro 1 (exclude as array):

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

Repro 2 (exclude as list):

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

Actual Result: Exception thrown: "Based on configured schedule, the given trigger will never fire."

Expected Result: Task should be created with 2 exclude dates (dateExclude1 & dateExclude2)

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

Watson Bug ID:	3336197

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

Attachments:

Comments:

The exclude attribute enables excluding dates from the schedule. This does not consider the time during a day. Essentially the whole day is excluded. We may consider excluding times as an enhancement.
Comment by Himavanth R.
17959 | November 14, 2012 04:08:55 AM GMT
Hi Himavanth, Just now saw your note. I can log an ER for exclude to consider time. I suppose maybe cfschedule's doc should be updated to clarify that the time portion is currently ignored. Btw, bugbase never sends emails. Only exception is when engineer requests more info. In that case, the creator of the ticket receives an email asking for more info. Never do voters or commenters ever receive an email. Thanks!, -Aaron
Comment by External U.
17960 | January 29, 2013 01:25:39 AM 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.
17961 | January 29, 2013 02:29:11 AM GMT
Closing this one as another bug #CF-3491695 is logged for adding the support for excluding time in the scheduled task.
Comment by Rupesh K.
17962 | February 13, 2013 05:49:53 AM GMT