In a support discussion titled ‘When does the daily task for the \u2018Reader\u2019 badge run?’, sweetbeems seeks to determine the exact schedule of the Reader Badge’s daily task, noting it isn’t visible in logs or crontab. They suspect it’s handled by /discourse/blob/main/app/jobs/scheduled/badge_grant.rb but lack Ruby experience. pfaffman suggests checking Sidekiq and forcing the job to run to infer its schedule. sweetbeems tries listing scheduled jobs via Sidekiq commands but finds no relevant entry, questioning if the badge job runs by default. pfaffman then directs them to visit https://yourforum.com/sidekiq to view the job dashboard. sweetbeems confirms this solved their issue, expressing gratitude. The discussion highlights that the Reader Badge task is managed via Sidekiq, not cron, and runs in UTC unless otherwise configured. Accessing the Sidekiq UI provides visibility into job schedules and execution times.
Per the solution 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!