I was relying on adding a custom retry attribute as a code annotation:
[DestinationRetry]
public void Run(long instanceWorkflowId)
{
Trace.TraceInformation($"---- Running Destination for instance id {instanceWorkflowId}");
This does NOT work correctly as OnStateElection never sees a candidate state of failed,
Code does get run on failed, but it seems instead just in this case it always uses the default defined in GlobalJobFilters.
To work around this to use my custom attribute I have to do so globally, which is not ideal