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

run Gratipay 155 #3465

Closed
chadwhitacre opened this issue May 21, 2015 · 43 comments
Closed

run Gratipay 155 #3465

chadwhitacre opened this issue May 21, 2015 · 43 comments

Comments

@chadwhitacre
Copy link
Contributor

154

@chadwhitacre chadwhitacre added this to the Pivot milestone May 21, 2015
@chadwhitacre
Copy link
Contributor Author

Alright, we want to get #3419 and #3287 out the door today before running this if we can.

@chadwhitacre
Copy link
Contributor Author

@rohitpaulk Wanna get a PR going for #3287? I'm going to try to knock out #3419 asap.

@chadwhitacre
Copy link
Contributor Author

I've got PRs open for the blockers on #3419. I'm gonna look at #3287.

@chadwhitacre
Copy link
Contributor Author

Okay @rohitpaulk, we're getting down to it on this. Do you think we can land #3470 in the next few minutes, or should we bump that to next week?

@rohitpaulk
Copy link
Contributor

We should be able to run on Braintree today. The only part I'm not sure about is how we handle cancelling card holds - I can revisit that after today's Payday.

I'll push the final commits to #3470 in a few mins

@chadwhitacre
Copy link
Contributor Author

Okay. We only have 35 minutes if we want payouts to be deposited by tomorrow.

@chadwhitacre
Copy link
Contributor Author

I reviewed one new team: https://gratipay.com/mojolicious/. I'm not bothering with our old review system because it doesn't really impact today's payday since we haven't allowed new subscriptions to the new teams yet.

@chadwhitacre
Copy link
Contributor Author

I'm going to run locally instead of on a DO droplet since we had problems with DO last week and we don't have much time this week.

@rohitpaulk
Copy link
Contributor

How far along are we with the braintree_customer_id migration?

@chadwhitacre
Copy link
Contributor Author

Not done. We have 20 minutes. I think we should run on Balanced.

@rohitpaulk
Copy link
Contributor

I think we should run on Balanced.

Hmm, yh me too. Braintree today would be too risky.

@chadwhitacre
Copy link
Contributor Author

Okay, proceeding on Balanced ...

@rohitpaulk
Copy link
Contributor

I'm going to run locally instead of on a DO droplet since we had problems with DO last week and we don't have much time this week.

The number of API calls this time will be far more (CC charges are included), think it'll be fine?

@chadwhitacre
Copy link
Contributor Author

Hmm, good point ... okay, let's start on DO and keep local as a fall-back.

@chadwhitacre
Copy link
Contributor Author

Backup taken and verified.

@chadwhitacre
Copy link
Contributor Author

Droplet spun up and being updated ...

@chadwhitacre
Copy link
Contributor Author

Updated and script started.

@chadwhitacre
Copy link
Contributor Author

Fetching card holds ...

@chadwhitacre
Copy link
Contributor Author

HTTPError: 504 Server Error: GATEWAY_TIMEOUT

@rohitpaulk
Copy link
Contributor

🔁

@chadwhitacre
Copy link
Contributor Author

Indeed.

@chadwhitacre
Copy link
Contributor Author

Lots of Set state to failed on a $10.00 hold for nnn.

@chadwhitacre
Copy link
Contributor Author

Yay logging! :-)

@chadwhitacre
Copy link
Contributor Author

Now into create_card_holds ...

@chadwhitacre
Copy link
Contributor Author

Capturing card holds ...

@chadwhitacre
Copy link
Contributor Author

Captured 70 card holds.
Canceling card holds.

@chadwhitacre
Copy link
Contributor Author

Blocking ...

@chadwhitacre
Copy link
Contributor Author

Same place as last time. :-/

#3415 (comment) (+ new logging)

@chadwhitacre
Copy link
Contributor Author

Alright, so we run the rest locally. Do we need to comment anything out?

@chadwhitacre
Copy link
Contributor Author

Rerunning locally as-is (no patch).

@chadwhitacre
Copy link
Contributor Author

Lots more Set state to failed ...

@chadwhitacre
Copy link
Contributor Author

pid-43138 thread-140735252603648 (MainThread) Processing subscriptions.
pid-43138 thread-140735252603648 (MainThread) Processing draws.
pid-43138 thread-140735252603648 (MainThread) Settling card holds.
pid-43138 thread-140735252603648 (MainThread) Capturing card holds.
pid-43138 thread-140735252603648 (MainThread) Captured 0 card holds.
pid-43138 thread-140735252603648 (MainThread) Canceling card holds.
pid-43138 thread-140735252603648 (MainThread) Canceled 0 card holds.
pid-43138 thread-140735252603648 (MainThread) Updating balances.
pid-43138 thread-140735252603648 (MainThread) Updated the balances of 615 participants.
pid-43138 thread-140735252603648 (MainThread) Taking over balances.
pid-43138 thread-140735252603648 (MainThread) Starting payout loop.
[...]
pid-43138 thread-140735252603648 (MainThread) Did payout for 4 participants.
pid-43138 thread-140735252603648 (MainThread) Checked the DB.
pid-43138 thread-140735252603648 (MainThread) Updating stats.
pid-43138 thread-140735252603648 (MainThread) Updated payday stats.
pid-43138 thread-140735252603648 (MainThread) Updated receiving amounts.
pid-43138 thread-140735252603648 (MainThread) Notifying participants.

@chadwhitacre
Copy link
Contributor Author

6:32. We'll see if we made the cut.

@chadwhitacre
Copy link
Contributor Author

Notifying participants could take a while ...

@chadwhitacre
Copy link
Contributor Author

Script ran for three minutes (0:03:11.015422).

@rohitpaulk
Copy link
Contributor

Notifying participants could take a while

That's weird, we just queue emails don't we?

@chadwhitacre
Copy link
Contributor Author

Yeah, but one at a time for ... well, I guess only 70 users (70 card holds). Didn't take that long. :-)

@rohitpaulk
Copy link
Contributor

:)

@chadwhitacre
Copy link
Contributor Author

Droplet destroyed (log downloaded previously in order to continue running locally).

@chadwhitacre
Copy link
Contributor Author

!m @rohitpaulk

Thanks for all your great work on this stuff, lot more fun to not be hacking alone through all this. :)

@chadwhitacre
Copy link
Contributor Author

Again, not bothering with escrow shuffle.

@chadwhitacre
Copy link
Contributor Author

MassPay done and posted back for 2 users.

@chadwhitacre
Copy link
Contributor Author

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

2 participants