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

run Gittip 72 #1597

Closed
chadwhitacre opened this issue Oct 17, 2013 · 15 comments
Closed

run Gittip 72 #1597

chadwhitacre opened this issue Oct 17, 2013 · 15 comments

Comments

@chadwhitacre
Copy link
Contributor

71

@chadwhitacre
Copy link
Contributor Author

This account is in a weird state:

https://www.gittip.com/TheDaleGrant/

The Twitter account is MIA. I looked up the Twitter ID associated with the account, and it resolves to: https://twitter.com/bsebhat. I've flagged the account as suspicious and reached out on Twitter.

@chadwhitacre
Copy link
Contributor Author

Reviewed 31 accounts.

@chadwhitacre
Copy link
Contributor Author

I wrote a utility to help manage backups. #1599

@chadwhitacre
Copy link
Contributor Author

Backup taken and verified. Reticketed #1598.

@chadwhitacre
Copy link
Contributor Author

Droplet spun up.

@chadwhitacre
Copy link
Contributor Author

Droplet accessed and updated.

@chadwhitacre
Copy link
Contributor Author

Script started.

@chadwhitacre
Copy link
Contributor Author

Ran afoul of the new 10s statement_timeout (#1541):

Traceback (most recent call last):
  File "/home/whit537/www.gittip.com/gittip/cli.py", line 20, in payday
    Payday(db).run()
  File "/home/whit537/www.gittip.com/gittip/billing/payday.py", line 135, in run
    self.payin(ts_start, self.genparticipants(ts_start, ts_start))
  File "/home/whit537/www.gittip.com/gittip/billing/payday.py", line 224, in payin
    for i, (participant, tips, total) in enumerate(participants, start=1):
  File "/home/whit537/www.gittip.com/gittip/billing/payday.py", line 117, in genparticipants
    tips, total = participant.get_tips_and_total(for_payday=for_payday)
  File "/home/whit537/www.gittip.com/gittip/models/participant.py", line 639, in get_tips_and_total
    tips = self.db.all(TIPS, args, back_as=dict)
  File "/home/whit537/www.gittip.com/env/local/lib/python2.7/site-packages/postgres/__init__.py", line 529, in all
    return cursor.all(sql, parameters)
  File "/home/whit537/www.gittip.com/env/local/lib/python2.7/site-packages/postgres/cursors.py", line 145, in all
    self.execute(sql, parameters)
  File "/home/whit537/www.gittip.com/env/local/lib/python2.7/site-packages/psycopg2/extras.py", line 223, in execute
    return super(RealDictCursor, self).execute(query, vars)
QueryCanceledError: canceling statement due to statement timeout

So that's what that looks like. :-)

@chadwhitacre
Copy link
Contributor Author

Setting statement_timeout per-query during payday reticketed as #1600.

@chadwhitacre
Copy link
Contributor Author

For now I did:

ALTER ROLE username SET statement_timeout=0;

@chadwhitacre
Copy link
Contributor Author

I'll change that back to =10000 after payday is done.

Script is off and running.

Parent shell kill -6ed.

@chadwhitacre
Copy link
Contributor Author

Script ran for {age} (1:34:46.578956).

@chadwhitacre
Copy link
Contributor Author

I've changed statement_timeout back to 10s.

@chadwhitacre
Copy link
Contributor Author

I heard from https://www.gittip.com/bsebhat/ (formerly TheDaleGrant) in email and unblocked their account.

@chadwhitacre
Copy link
Contributor Author

Funding to PayPal hasn't cleared yet. Check again tomorrow.

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

No branches or pull requests

1 participant