Hangfire Discussion

Hangfire Attribute


#1

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

Great work!

Thanks


#2

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.