# שגיאת Sidekiq עבור Job::DeleteReplies Job

**URL:** https://meta.discourse.org/t/sidekiq-error-for-jobs-deletereplies-job/178588
**Category:** Support
**Created:** [5 בפברואר,‏ 2021,‏ 7:35pm UTC](https://meta.discourse.org/t/sidekiq-error-for-jobs-deletereplies-job/178588 "2021-02-05T19:35:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [5 בפברואר,‏ 2021,‏ 7:35pm UTC](https://meta.discourse.org/t/sidekiq-error-for-jobs-deletereplies-job/178588/1 "2021-02-05T19:35:01Z")

</div>

Hello,  
I’m getting lot of failed jobs for the Jobs::DeleteReplies job. I don’t think this can have anything to do with my plugins. Maybe some incompatibility between upgrades?

> `Jobs::HandledExceptionWrapper: Wrapped NoMethodError: undefined method `minutes’ for nil:NilClass`

Multiple identical jobs are accumulating in “retries” tab of Sidekiq..

![image](https://global.discourse-cdn.com/meta/optimized/3X/2/a/2a44086e765dfd05b7645f3e58079fbbcbb4089d_2_690x40.png)

Thanks for any advice..

UPDATE: I’ve found associated topic\_id and deleted this particular topic timer, hopefully it helps..  
I’m leaving this here maybe it can be result of a bug..

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [5 בפברואר,‏ 2021,‏ 7:41pm UTC](https://meta.discourse.org/t/sidekiq-error-for-jobs-deletereplies-job/178588/2 "2021-02-05T19:41:34Z")

</div>

It’s a bug from a change we made **very** recently, should be fixed by next week.

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [5 בפברואר,‏ 2021,‏ 7:44pm UTC](https://meta.discourse.org/t/sidekiq-error-for-jobs-deletereplies-job/178588/3 "2021-02-05T19:44:14Z")

</div>

Thanks for confirmation. Should I expect more problems with other topic\_timers? Which type of the timer is affected? Only “delete post after x”? It really accumulated a lot in the queue (thousands in few hours).. (luckily I have prometheus… 🙂 )

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [8 בפברואר,‏ 2021,‏ 12:12am UTC](https://meta.discourse.org/t/sidekiq-error-for-jobs-deletereplies-job/178588/4 "2021-02-08T00:12:06Z")

</div>

The fix is here:

[https://github.com/discourse/discourse/commit/18da1d5b07445e1de3a1326aabcca68091093dd7](https://github.com/discourse/discourse/commit/18da1d5b07445e1de3a1326aabcca68091093dd7)

This migration did not work as expected:

```plaintext
DB.exec("UPDATE topic_timers SET duration_minutes = (duration * 60 * 24) WHERE duration_minutes != duration AND status_type = 7 AND duration IS NOT NULL")
DB.exec("UPDATE topic_timers SET duration_minutes = (duration * 60) WHERE duration_minutes != duration AND status_type != 7 AND duration IS NOT NULL")

```

`WHERE duration_minutes != duration` does not work if duration\_minutes is NULL, which all of them ~~are~~ were.

> [@Overgrow](#):
>
> Thanks for confirmation. Should I expect more problems with other topic\_timers? Which type of the timer is affected? Only “delete post after x”? It really accumulated a lot in the queue (thousands in few hours)… (luckily I have prometheus… 🙂 )

Yes only the `Jobs::DeleteReplies` job directly referred to the new `duration_minutes` job, so other timers should have been unaffected (from what I can tell).

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [8 בפברואר,‏ 2021,‏ 12:14am UTC](https://meta.discourse.org/t/sidekiq-error-for-jobs-deletereplies-job/178588/5 "2021-02-08T00:14:08Z")

</div>


