# Badge automaticaly doesn't triggers

**URL:** https://meta.discourse.org/t/badge-automaticaly-doesnt-triggers/52081
**Category:** Bug
**Created:** [2016年十月27日 08:44 UTC](https://meta.discourse.org/t/badge-automaticaly-doesnt-triggers/52081 "2016-10-27T08:44:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![matthieu\_lamarque](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matthieu_lamarque/32/120426_2.png) [@matthieu\_lamarque](https://meta.discourse.org/u/matthieu_lamarque)
#### Post date: [2016年十月27日 08:44 UTC](https://meta.discourse.org/t/badge-automaticaly-doesnt-triggers/52081/1 "2016-10-27T08:44:36Z")

</div>

Hello,  
I have a problem on a discourse badges configuration.  
Since few days, badges are not trigger when users make actions.  
The badge is of course enable and i have results if make a preview on back-office.

```
example : badge for a first like
request : SELECT p.user_id, min(post_id) post_id, min(pa.created_at) granted_at
    FROM post_actions pa
    JOIN badge_posts p on p.id = pa.post_id
    WHERE post_action_type_id = 2 AND
        (:backfill OR pa.post_id IN (:post_ids) )
    GROUP BY p.user_id

```

I don’t know where to look to resolve that.  
Thanks for your help.

Matthieu

---

<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: [2016年十月27日 17:02 UTC](https://meta.discourse.org/t/badge-automaticaly-doesnt-triggers/52081/2 "2016-10-27T17:02:29Z")

</div>

You can look at `/sidekiq/scheduler` and search for “badge” to trigger the badge manually.

If you run the query by editing the badge and running it, does it still work?

---

<div class="post-metadata">

### Author: ![matthieu\_lamarque](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matthieu_lamarque/32/120426_2.png) [@matthieu\_lamarque](https://meta.discourse.org/u/matthieu_lamarque)
#### Post date: [2016年十月28日 12:14 UTC](https://meta.discourse.org/t/badge-automaticaly-doesnt-triggers/52081/3 "2016-10-28T12:14:27Z")

</div>

Hello,

Yes, f I trigger the badge manually via /sidekiq/scheduler, the badges are assigns.  
But if I change trigger to ‘automatically’ after user event’ nothing 😢
