Hangfire Attribute

Is there a way to clear or ignore or stop a job from enqueueing if one is already enqueued?

Great work!


Look at this thread (Job reentrancy avoidance proposal) which talks about creating a JobAttribute class, SkipConcurrentExecutionAttribute, that can facilitate just what you’re talking about. I’ve tried the suggested code on this thread with some success, but because of some custom handling in my solution,I ended up modifying the class to get what I wanted. In the end, this does work.