Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

run Gratipay 154 #3415

Closed
chadwhitacre opened this issue May 13, 2015 · 140 comments
Closed

run Gratipay 154 #3415

chadwhitacre opened this issue May 13, 2015 · 140 comments

Comments

@chadwhitacre
Copy link
Contributor

153 was the Gratipocalypse. See #3399 for our efforts to get back on track for 154.

@chadwhitacre
Copy link
Contributor Author

I believe the payday rewrite is far enough along for this week (#3414).

@chadwhitacre
Copy link
Contributor Author

I'm going to migrate tips to subscriptions on #3399, and then switch over to here.

@chadwhitacre
Copy link
Contributor Author

=> select count(*) from subscriptions;
┌───────┐
│ count │
├───────┤
│   984 │
└───────┘
(1 row)

@chadwhitacre
Copy link
Contributor Author

Who's ready?

@chadwhitacre
Copy link
Contributor Author

Account review performed manually for beta users of the new system (see #3399).

@chadwhitacre
Copy link
Contributor Author

Droplet spun up, backup started ...

@rohitpaulk
Copy link
Contributor

👏 👏

@chadwhitacre
Copy link
Contributor Author

Droplet updated.

@chadwhitacre
Copy link
Contributor Author

Backup finished and (manually) verified.

@chadwhitacre
Copy link
Contributor Author

Script started.

@chadwhitacre
Copy link
Contributor Author

Seems to be working. 🍀

@tshepang
Copy link
Contributor

yeah, just got notification sms

@chadwhitacre
Copy link
Contributor Author

Captured 110 card holds.

@chadwhitacre
Copy link
Contributor Author

@tshepang Nice!

The script seems to have paused ...

@chadwhitacre
Copy link
Contributor Author

Could be because we're canceling so many old card holds?

@chadwhitacre
Copy link
Contributor Author

I still see the process:

$ ps auxww|grep python
whit537   1504  0.0  2.1  45592 10928 ?        S    21:34   0:00 /home/whit537/gratipay.com/env/bin/python2.7 ./env/bin/honcho run -e /dev/stdin ./env/bin/payday
whit537   1524  1.1  7.5 743124 37988 ?        Sl   21:34   0:09 /home/whit537/gratipay.com/env/bin/python2.7 ./env/bin/payday

@chadwhitacre
Copy link
Contributor Author

Must be stuck in card holds, because the next log line is Canceled %i card holds., and I haven't seen that yet.

@chadwhitacre
Copy link
Contributor Author

I guess I'll give it a couple more minutes? What's our option, comment that out and rerun the script?

@chadwhitacre
Copy link
Contributor Author

There's a step at the beginning of payday that takes quite a bit of time, iirc it's when we fetch card holds to begin with (it comes after the db is prepared but before we start placing new holds).

@rohitpaulk
Copy link
Contributor

What's our option, comment that out and rerun the script?

We could add a log message to cancel_card_hold just like create_card_hold so that we're sure that's where it's stuck.

@chadwhitacre
Copy link
Contributor Author

Killed it.

@chadwhitacre
Copy link
Contributor Author

Put an early return in settle_card_holds and restarted ...

@chadwhitacre
Copy link
Contributor Author

Okay, commented out the parts we already ran and re-ran. We are making many more payouts than I intended. Oh well.

@chadwhitacre
Copy link
Contributor Author

Did payout for 354 participants.
Script ran for 35 seconds (0:00:35.063665).

@chadwhitacre
Copy link
Contributor Author

We made three new exchanges. We have six teams, two of which are on PayPal. The sixth had a balance less than $10. I've mentioned the payout threshold at #1383 (comment).

@chadwhitacre
Copy link
Contributor Author

Gosh, maybe? Do you have the ticket handy for "last time"? I'm on 2.7.9 and the droplet is on 2.7.3.

@rohitpaulk
Copy link
Contributor

Last time was Honcho...

#3025
#3028

@rohitpaulk
Copy link
Contributor

Finally.....

@chadwhitacre
Copy link
Contributor Author

Not so fast. We still need to do MassPay and shuffle escrow. 📦

@chadwhitacre chadwhitacre reopened this May 15, 2015
@chadwhitacre
Copy link
Contributor Author

(I was delayed by a phone call re: #3366, sorry.)

@chadwhitacre
Copy link
Contributor Author

Reticketed upgrading the payday snapshot as #3444.

@chadwhitacre
Copy link
Contributor Author

MassPay done and posted back for two users.

@chadwhitacre
Copy link
Contributor Author

Not gonna worry about shuffling escrow this week, since amounts were so small.

@chadwhitacre
Copy link
Contributor Author

Okay! Now we're done. :-)

🎂

@chadwhitacre
Copy link
Contributor Author

:sigh:

Not seeing MassPay in exchanges ...

@chadwhitacre chadwhitacre reopened this May 15, 2015
@chadwhitacre
Copy link
Contributor Author

Fixed in b48db58 and postback completed and confirmed. Okay!

!m @rohitpaulk
!m *

@chadwhitacre
Copy link
Contributor Author

We somehow messed up the year here (2015 changed to 2014)... I'm going to manually correct this in the DB.

@rohitpaulk I'm seeing this in email notification but not here. What's the story?

@rohitpaulk
Copy link
Contributor

I'm seeing this in email notification but not here. What's the story?

Ah that was me misreading data - I tried it out on a backup and then realized the mistake. Apparently, my attempts to cover the history didn't work as planned 😛

@chadwhitacre
Copy link
Contributor Author

:-)

@chadwhitacre
Copy link
Contributor Author

We seem to be making progress on #3415 (comment) over in gratipay/inside.gratipay.com#477.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants