make fetch_acc unique

now that it doesn't carry state info in its arguments, it's safe to skip
dupes
This commit is contained in:
codl 2019-03-11 12:08:08 +01:00
parent 095952f767
commit 249fab7014
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ def make_dormant(acc):
@app.task(autoretry_for=(TemporaryError, ))
@unique
def fetch_acc(id_):
account = Account.query.get(id_)
print(f'fetching {account}')