So if I set that up, and enqueue a scheduled action where the callback throws an exception, method call_failed_execution()
is successfully executed and the action_failed_<ID>
option is set.
I’m afraid there’s no obvious answer I can offer you on this occasion, and likely there are factors at play that I can’t see based on the information shared so far.
if ( has_action ( 'action_scheduler_failed_execution' ) ) { /*...*/ }
One thing I would note (though perhaps I’m just missing context) is that the above check is probably unnecessary, but I don’t think that is relevant to the actual problem you are facing.
There probably isn’t much more assistance we can provide right here in the forums, but if you manage to distill this down into something we can easily replicate definitely feel free to follow-up over on the issue tracker.
Thanks!