extend the result_ttl of refresh_queries to 600 seconds to allow it to continue running periodically even after longer executions (#4283)

This commit is contained in:
Omer Lachish 2019-10-24 11:56:07 +03:00 committed by Arik Fraimovich
parent 43b35b6fb4
commit 8b9fa53efe

View File

@ -32,7 +32,7 @@ def schedule_periodic_jobs():
job.delete()
jobs = [
{"func": refresh_queries, "interval": 30},
{"func": refresh_queries, "interval": 30, "result_ttl": 600},
{"func": empty_schedules, "interval": timedelta(minutes=60)},
{"func": refresh_schemas, "interval": timedelta(minutes=settings.SCHEMAS_REFRESH_SCHEDULE)},
{"func": sync_user_details, "timeout": 60, "ttl": 45, "interval": timedelta(minutes=1)},