mirror of
https://github.com/codl/forget
synced 2025-01-19 02:20:40 +01:00
lower minimum staleness for fetch
This commit is contained in:
parent
c2013197f9
commit
2ad5df5fbb
2
tasks.py
2
tasks.py
@ -72,7 +72,7 @@ def fetch_acc(id_, cursor=None):
|
||||
|
||||
@app.task
|
||||
def queue_fetch_for_most_stale_accounts(
|
||||
min_staleness=timedelta(minutes=5), limit=20):
|
||||
min_staleness=timedelta(minutes=2), limit=20):
|
||||
accs = Account.query\
|
||||
.join(Account.tokens).group_by(Account)\
|
||||
.filter(Account.last_fetch < db.func.now() - min_staleness)\
|
||||
|
Loading…
Reference in New Issue
Block a user