# Bulk award badge does not update grant\_count

**URL:** <https://meta.discourse.org/t/bulk-award-badge-does-not-update-grant-count/230426>\
**Category:** Product Support\
**Created:** [June 19, 2022, 3:13pm UTC](https://meta.discourse.org/t/bulk-award-badge-does-not-update-grant-count/230426 "2022-06-19T15:13:16Z")\
**Posts on this page:** 5\
**Page:** 1

## AI-generated summary

[topological](/t/-/230426/1) reported that the Bulk Award feature in Discourse 2.9.0.beta5 fails to update the `grant_count` for badges, requiring a manual execution of `Badge.ensure_consistency!` to resolve the discrepancy. [JammyDodger](/t/-/230426/2) explained that the `grant_badge` value is normally updated by the `EnsureDbConsistency` background job and suggested triggering this job manually via the `sidekiq/scheduler` page to expedite the process. [topological](/t/-/230426/3) confirmed that this solution worked, noting they had previously overlooked the specific job. Additionally, [Dmitry_Krasnoperov](/t/-/230426/4) linked to a related discussion regarding compatibility issues with Sidekiq 6.5.0, suggesting that an update may also address the problem.

<div class="post-metadata">

**Author:** ![topological](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@topological](https://meta.discourse.org/u/topological)\
**Post date:** [June 19, 2022, 3:13pm UTC](https://meta.discourse.org/t/bulk-award-badge-does-not-update-grant-count/230426/1 "2022-06-19T15:13:16Z")

</div>

I found that the Bulk Award in Admin - Badges does not update `grant_count`.  
After I bulk award, I need to execute `Badge.ensure_consistency!` manually.  
I’m using Discourse 2.9.0.beta5.

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/7/a/67ace0a2da0ecd4d925e1dc39f5735d97744dd46.png)

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [June 20, 2022, 10:10am UTC](https://meta.discourse.org/t/bulk-award-badge-does-not-update-grant-count/230426/2 "2022-06-20T10:10:42Z")

</div>

The `grant_badge` value is updated by the `EnsureDbConsistency` background job, but you can speed it up by triggering it manually from your `sidekiq/scheduler` page. 👍

Could you give that a test and see if that solves your issue?

---

<div class="post-metadata">

**Author:** ![topological](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@topological](https://meta.discourse.org/u/topological)\
**Post date:** [June 20, 2022, 10:16am UTC](https://meta.discourse.org/t/bulk-award-badge-does-not-update-grant-count/230426/3 "2022-06-20T10:16:14Z")

</div>

It works. I didn’t find the `EnsureDbConsistency ` job before. 🤣

Thank you!

---

<div class="post-metadata">

**Author:** ![Dmitry\_Krasnoperov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_krasnoperov/32/65079_2.png) [@Dmitry\_Krasnoperov](https://meta.discourse.org/u/Dmitry_Krasnoperov)\
**Post date:** [June 21, 2022, 5:09pm UTC](https://meta.discourse.org/t/bulk-award-badge-does-not-update-grant-count/230426/4 "2022-06-21T17:09:50Z")

</div>

[PR: compatability issues with Sidekiq 6.5.0](https://meta.discourse.org/t/pr-compatability-issues-with-sidekiq-6-5-0/230294) — update will work

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [October 25, 2022, 7:53am UTC](https://meta.discourse.org/t/bulk-award-badge-does-not-update-grant-count/230426/5 "2022-10-25T07:53:45Z")

</div>

Closed on October 25, 2022, 7:53am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
