-
Notifications
You must be signed in to change notification settings - Fork 308
run Gittip #17 #308
Comments
Backup taken and verified. |
Kicked off payday script. |
Payin loop done. Doing payouts. |
|
This is due to people creating accounts during the payin loop, as we saw on #169. |
Perhaps queue up new account creation during the loop? |
We're a victim of our own success here. Gittip is getting some strong traffic at the moment (~160 active as I write). We need to:
|
The good news is that payins are done. Here's my plan for fire-fighting (1):
|
So what database repair is needed? |
Here's the flow of this bug:
|
The repair is to set balance to 0.0 where it is NULL. We have 31 of these. There are 8087 records in participants overall (up from 8070 a few minutes ago). |
(1): Done. |
Now to satisfy myself that re-running the payouts loop will work, and then to run it. |
I commented out payin() and clear_pending_to_balance() and am rerunning the payday script. I neglected to also comment out zero_out_pending(). This should mean that all records will have pending 0.0, except those that are added while the payout loop is running. After payout is done I will reset those to NULL. |
Okay, payouts finished, and I reset pending to NULL. Calling it a day on Gittip 17. |
And, for the record, I did remember to uncomment payin() and clear_pending_to_balance(). ;-) |
@sigmavirus24 See #170 for fix for the issue that bit us here. |
16
The text was updated successfully, but these errors were encountered: