anyone used misfires and exception in schedular in coldfusion cfadmin, i am trying to see if i can write some component or page that if anyof the event happens, like misfire or exception, it should trigger the invokehandler which throws error so i can be notified that something went wrong with schedulked task
d
Daniel Mejia
02/08/2023, 9:33 PM
I catch all errors in my scheduled tasks and log them and do custom email notifications per task.
g
gsr
02/08/2023, 9:55 PM
I have try catch blocks in scheduled tasks but they do misfire sometime
gsr
02/08/2023, 9:55 PM
Ang no logs and nothing
d
Daniel Mejia
02/08/2023, 10:09 PM
Are all your tasks in one application? If so you can leverage onError application event handler.
g
gsr
02/09/2023, 2:11 AM
i already did
gsr
02/09/2023, 2:11 AM
and any catch statement is cached
gsr
02/09/2023, 2:12 AM
but when i view the scheduled tasks, i see some time misfires, i want to caqtch those and i see in scheduled tasks advanced settings, it seems to two dropdowns one is for misfire and otehr is for exception, but i have not tried thgaqt, anyone knows how that can be done