-
Notifications
You must be signed in to change notification settings - Fork 308
Potential payday race condition #2022
Comments
I'm also somewhat confused by |
Sorry, it does not relate. And @coderanger is right, genparticipants is not idempotent and it should be if we hope to resume the payday after an error. |
My recollection is that I decided that genparticipants not being idempotent wasn't a big deal. I recall noticing that a payday rerun (which is not theoretical, it does happen occasionally) would be subtly different than the first run, but in a way that was acceptable. I guess I didn't document that in the comments? |
I wasn't super scared reading the report either. But still, it would be better to have it be idempotent. |
Cool, I've marked this ★★☆. |
Payday has been rewritten (#2508). |
If a payday is interrupted and then resumed later, but in the gap someone opted-in to gittip it will produce inconsistencies. If I'm reading this code right, https://github.com/gittip/www.gittip.com/blob/master/gittip/models/participant.py#L661 should be checking if the claimed_time <= for_payday (read: they claimed their account before this payday started).
The text was updated successfully, but these errors were encountered: