.OnFinalFailure(...) option

Perhaps it is a bug, however ContinueWith does not fire, even with OnAnyFinishedState if the parent job failed.

I have tried many things to determine final failure - and all ended in failure. Hangfire is missing this crucial state.

I have attempted to tie into OnStateElection, however Hangfire will elect a failed state only to reschedule it again (if max attempts has not been reached) therefore that solution cannot work.

I have attempted the solution above however it does not queue - only sits at awaiting with ‘parent failed’
BackgroundJob.ContinueWith(scheduleTaskKey, () => new Temporary().Execute(scheduleTaskKey), JobContinuationOptions.OnAnyFinishedState);

I will attempt to create a RecurringJob in order to find any failed tasks, do what I need to do with them, then set them to deleted status however I feel this would be a very important feature.