tracker issue : CF-4196669

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

ITaskEventHandler.onError not being executed.

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

Reporter/Name(from Bugbase): Mark Moran / Mark Moran (Mark Moran)

Created: 10/18/2016

Components: Scheduler

Versions: 2016

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: CF2016_Update2 /

Priority/Frequency: Trivial / Unknown

Locale/System: ALL / Linux SuSE

Vote Count: 0

Problem Description: onError doesn't execute

Steps to Reproduce:

Task scheduled at the server level with no URL, so the execute method is called on the handler.

To test, I put a cfthrow in the execute method.

Actual Result:
Can't find the exception logged anywhere, including the file I'm writing to onError.

I also noticed onMisfire is not always called, only sometimes, though it should be because I'm running through Administrator off the normal schedule.

onTaskEnd is called, even though there was an error.

Expected Result:

onError should be called.

Any Workarounds:

Wrap everything inside execute with a cftry/cfcatch and manually invoke onError.

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

Watson Bug ID:	4196669

External Customer Info:
External Company:  
External Customer Name: Mark Moran
External Customer Email:  
External Test Config: My Hardware and Environment details:

 Running 2016,0,02,299200 on OpenSuse Leap/Tomcat 8



Scheduled Task: Run every hour.

Using a cfc that implements ITaskEventHandler.

Attachments:

Comments:

Posted a note in related bug CF-4195763 before I figured posting the bug under the relevant version of ACF made more sense.
Comment by External U.
1622 | October 18, 2016 01:33:01 PM GMT
Application.cfc has onerror method defined which is supposed to handle application specific error, so flow goes to that function. If this method is removed, onerror of ITaskEventHandler will be invoked
Comment by Uday O.
1623 | March 08, 2017 11:36:02 AM GMT