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:
parent
095952f767
commit
249fab7014
1
tasks.py
1
tasks.py
|
@ -96,6 +96,7 @@ def make_dormant(acc):
|
||||||
|
|
||||||
|
|
||||||
@app.task(autoretry_for=(TemporaryError, ))
|
@app.task(autoretry_for=(TemporaryError, ))
|
||||||
|
@unique
|
||||||
def fetch_acc(id_):
|
def fetch_acc(id_):
|
||||||
account = Account.query.get(id_)
|
account = Account.query.get(id_)
|
||||||
print(f'fetching {account}')
|
print(f'fetching {account}')
|
||||||
|
|
Loading…
Reference in New Issue