# Hangfire Attribute

**URL:** <https://discuss.hangfire.io/t/hangfire-attribute/2151>\
**Category:** question\
**Created:** [June 28, 2016, 2:04pm UTC](https://discuss.hangfire.io/t/hangfire-attribute/2151 "2016-06-28T14:04:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wdoman](https://avatars.discourse-cdn.com/v4/letter/w/a4c791/32.png) [@wdoman](https://discuss.hangfire.io/u/wdoman)\
**Post date:** [June 28, 2016, 2:04pm UTC](https://discuss.hangfire.io/t/hangfire-attribute/2151/1 "2016-06-28T14:04:40Z")

</div>

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

Great work!

Thanks

---

<div class="post-metadata">

**Author:** ![Steven\_Sampson](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Steven\_Sampson](https://discuss.hangfire.io/u/Steven_Sampson)\
**Post date:** [June 28, 2016, 2:42pm UTC](https://discuss.hangfire.io/t/hangfire-attribute/2151/2 "2016-06-28T14:42:39Z")

</div>

Look at this thread ([Job reentrancy avoidance proposal](http://hangfire.discourse.group/t/job-reentrancy-avoidance-proposal/607)) 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.
