# Sidekiq error for Jobs::DeleteReplies Job

**URL:** https://meta.discourse.org/t/sidekiq-error-for-jobs-deletereplies-job/178588
**Category:** Support
**Created:** [February 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:** 1
**Showing post:** 4

<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: [February 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).

---

_[View the full topic](https://meta.discourse.org/t/sidekiq-error-for-jobs-deletereplies-job/178588)._
