# Multiple CloseTopic jobs per topic in Sidekiq

**URL:** https://meta.discourse.org/t/multiple-closetopic-jobs-per-topic-in-sidekiq/37754
**Category:** Bug
**Created:** [Janeiro 11, 2016, 5:07pm UTC](https://meta.discourse.org/t/multiple-closetopic-jobs-per-topic-in-sidekiq/37754 "2016-01-11T17:07:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Yuun](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@Yuun](https://meta.discourse.org/u/Yuun)
#### Post date: [Janeiro 11, 2016, 5:07pm UTC](https://meta.discourse.org/t/multiple-closetopic-jobs-per-topic-in-sidekiq/37754/1 "2016-01-11T17:07:33Z")

</div>

As seen here:

 ![](https://global.discourse-cdn.com/meta/original/3X/e/f/efdffd361eddafaaf8846ef6df361b0a26209a8d.png)

I have one topic which is set to close 7 days after the last post, which is generating a new job for each new post. I’m not sure how much of a problem this is (maybe the duplicate jobs just painlessly clear on schedule?) but it seemed a bit odd.

Currently on v1.5.0beta8+13, upgraded earlier this morning.

And because I just thought to check it, I tried using autoclose on another thread and the same issue popped up. Additionally, removing autoclose from that thread didn’t clear the CloseTopic jobs in Sidekiq.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Janeiro 11, 2016, 11:19pm UTC](https://meta.discourse.org/t/multiple-closetopic-jobs-per-topic-in-sidekiq/37754/2 "2016-01-11T23:19:41Z")

</div>

Can you have a peek @zogstrip to make sure there isn’t a deeper bug here?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [Janeiro 13, 2016, 8:08am UTC](https://meta.discourse.org/t/multiple-closetopic-jobs-per-topic-in-sidekiq/37754/3 "2016-01-13T08:08:41Z")

</div>

Yup, there was indeed a bug. I believe it’s due to our recent migration to the newest version of Sidekiq which changed its API a little bit. This should fix it 🍓

[https://github.com/discourse/discourse/commit/737c6067104e06a9b96c11956062e10eccebf9e9](https://github.com/discourse/discourse/commit/737c6067104e06a9b96c11956062e10eccebf9e9)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [Janeiro 13, 2016, 8:08am UTC](https://meta.discourse.org/t/multiple-closetopic-jobs-per-topic-in-sidekiq/37754/4 "2016-01-13T08:08:43Z")

</div>


