# When does the daily task for the 'Reader' badge run?

**URL:** https://meta.discourse.org/t/when-does-the-daily-task-for-the-reader-badge-run/230697
**Category:** Support
**Created:** [June 22, 2022, 2:20am UTC](https://meta.discourse.org/t/when-does-the-daily-task-for-the-reader-badge-run/230697 "2022-06-22T02:20:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sweetbeems](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sweetbeems](https://meta.discourse.org/u/sweetbeems)
#### Post date: [June 22, 2022, 2:20am UTC](https://meta.discourse.org/t/when-does-the-daily-task-for-the-reader-badge-run/230697/1 "2022-06-22T02:20:08Z")

</div>

Per the [solution](https://meta.discourse.org/t/reader-badge-not-awarded/35922) about why users may not see a Reader Badge awarded, I was wondering how I might figure out when exactly the daily task for the Reader Badge is run?

I’ve entered my discourse app and looked at the /shared/log/rails/production.log, but I wasn’t finding much. There also doesn’t seem to be a crontab for this task. (crontab -l returns nothing relevant)

Any insight on how to figure out when it runs? And is UTC or a specific timezone? Thanks! 🙂

If it helps, I think the job is scheduled in [/discourse/blob/main/app/jobs/scheduled/badge\_grant.rb](https://github.com/discourse/discourse/blob/main/app/jobs/scheduled/badge_grant.rb).

I’m not experienced in ruby though, so take that with a grain of salt!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [June 22, 2022, 10:23am UTC](https://meta.discourse.org/t/when-does-the-daily-task-for-the-reader-badge-run/230697/2 "2022-06-22T10:23:42Z")

</div>

See /sidekiq and the look for the job name that your found. You can force it to run and then it’ll run the same time the next day.

---

<div class="post-metadata">

### Author: ![sweetbeems](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sweetbeems](https://meta.discourse.org/u/sweetbeems)
#### Post date: [June 22, 2022, 1:32pm UTC](https://meta.discourse.org/t/when-does-the-daily-task-for-the-reader-badge-run/230697/3 "2022-06-22T13:32:55Z")

</div>

I’m sorry, I’m not exactly following.. I don’t know anything about sidekiq or rails 😅

I’ve tried to list out all the scheduled jobs in discourse:

```plaintext
ss = Sidekiq::ScheduledSet.new
ss.map{|job| job['args']}

=> [[{"topic_id"=>19, "current_site_id"=>"default"}],
 [{"topic_id"=>17, "current_site_id"=>"default"}],
 [{"type"=>"user_posted",
   ...
   "current_site_id"=>"default"}],
 [{"type"=>"user_replied",
  ...
   "current_site_id"=>"default"}],
 [{"post_id"=>1386, "current_site_id"=>"default"}],
 [{"type"=>"user_posted",
   ...
   "current_site_id"=>"default"}],
 [{"type"=>"user_replied",
   ...
   "current_site_id"=>"default"}],
 [{"post_id"=>1385, "current_site_id"=>"default"}]]

```

but it doesn’t seem to be there. Granted, perhaps I ran that command wrong ([answer 3 on SO](https://stackoverflow.com/questions/48348723/sidekiq-list-all-jobs-queued-running)).

Any tips? Does the badge grant job not run by default?

Appreciate your help!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [June 22, 2022, 1:37pm UTC](https://meta.discourse.org/t/when-does-the-daily-task-for-the-reader-badge-run/230697/4 "2022-06-22T13:37:24Z")

</div>

visit `https://yourforum.com/sidekiq`

---

<div class="post-metadata">

### Author: ![sweetbeems](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sweetbeems](https://meta.discourse.org/u/sweetbeems)
#### Post date: [June 22, 2022, 1:49pm UTC](https://meta.discourse.org/t/when-does-the-daily-task-for-the-reader-badge-run/230697/5 "2022-06-22T13:49:09Z")

</div>

Oh thank you! Solves everything 🙂

---

<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: [July 22, 2022, 1:49pm UTC](https://meta.discourse.org/t/when-does-the-daily-task-for-the-reader-badge-run/230697/6 "2022-07-22T13:49:27Z")

</div>

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