lower minimum staleness for fetch

This commit is contained in:
codl 2017-08-31 20:48:26 +02:00
parent c2013197f9
commit 2ad5df5fbb
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ def fetch_acc(id_, cursor=None):
@app.task @app.task
def queue_fetch_for_most_stale_accounts( def queue_fetch_for_most_stale_accounts(
min_staleness=timedelta(minutes=5), limit=20): min_staleness=timedelta(minutes=2), limit=20):
accs = Account.query\ accs = Account.query\
.join(Account.tokens).group_by(Account)\ .join(Account.tokens).group_by(Account)\
.filter(Account.last_fetch < db.func.now() - min_staleness)\ .filter(Account.last_fetch < db.func.now() - min_staleness)\