tracker issue : CF-3364796

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

cfschedule's Execute Event Handler Should Have Access to Context Argument

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Rob Bilson / Rob Bilson (Rob Bilson)

Created: 11/13/2012

Components: Scheduler

Versions: 10.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: Final / 286425

Priority/Frequency: Trivial / Unknown

Locale/System: English / Windows 7 64-bit

Vote Count: 1

cfschedu's new onTaskStart, onTaskEnd, onError and onMisfire handlers all have access to the Context argument, a structure that contains the task name, group and node.  For some reason, Context isn't passed in to the Execute method.  Execute should have access to the same Context structure so you can reference the calling task name, group and mode in the task execution code.  This is handy for things like logging, etc.

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

Watson Bug ID:	3364796

External Customer Info:
External Company:  
External Customer Name: Rob Brooks-Bilson
External Customer Email:  
External Test Config: My Hardware and Environment details:



+1 -- Adam //////////////////
Vote by External U.
17223 | November 14, 2012 01:33:27 AM GMT
Uday, is this fixed? Can you attach the fix information?
Comment by Vamseekrishna N.
17220 | December 03, 2013 02:47:08 AM GMT
Previously execute method of ITaskEventHandler.cfc interface was : public void function execute(); Now it is : public void function execute(Struct context); So now context is being passed to execute method also
Comment by Uday O.
17221 | December 03, 2013 07:33:30 AM GMT
Thanks guys!
Comment by External U.
17222 | December 03, 2013 10:31:04 AM GMT