Skip to content

Commit

Permalink
extend the result_ttl of refresh_queries to 600 seconds to allow it t…
Browse files Browse the repository at this point in the history
…o continue running periodically even after longer executions (#4283)
  • Loading branch information
Omer Lachish authored and arikfr committed Oct 24, 2019
1 parent 43b35b6 commit 8b9fa53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)},
Expand Down

0 comments on commit 8b9fa53

Please sign in to comment.