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: