# Gamification and invitations

**URL:** <https://meta.discourse.org/t/gamification-and-invitations/269544>\
**Category:** Bug\
**Tags:** gamification, invites\
**Created:** [June 25, 2023, 10:47am UTC](https://meta.discourse.org/t/gamification-and-invitations/269544 "2023-06-25T10:47:31Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [September 25, 2023, 9:18am UTC](https://meta.discourse.org/t/gamification-and-invitations/269544/6 "2023-09-25T09:18:02Z")

</div>

> [@JammyDodger](#):
>
> Would adding a small buffer like `AND u.created_at + INTERVAL '1 SECOND' > iu.redeemed_at ` compensate for that without impacting it too much?

I find this a bit too much “black magic” since we don’t know what is causing the delay.

I suspect the delay is caused by a large sidekiq queue or something similar and although the majority is under one second, about 3% is in the range of 0:00:01 - 0:15:00 (one second to 15 minutes).

And half a percent is in the order of days, which seems the kind of abuse we’re trying to prevent. So although this is effective, it would be doing more bad than good because of the amount of false positives.

---

_[View the full topic](https://meta.discourse.org/t/gamification-and-invitations/269544)._
