Skip to content

Commit

Permalink
feat(queries): Add reject_on_worker_lost for async queries (#22898)
Browse files Browse the repository at this point in the history
Add reject_on_worker_lost for async queries
  • Loading branch information
webjunkie authored Jun 14, 2024
1 parent 2ce1dac commit e92f66b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions posthog/tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def redis_heartbeat() -> None:
retry_backoff_max=10,
max_retries=3,
expires=60 * 10, # Do not run queries that got stuck for more than this
reject_on_worker_lost=True,
)
@limit_concurrency(90) # Do not go above what CH can handle (max_concurrent_queries)
@limit_concurrency(
Expand Down

0 comments on commit e92f66b

Please sign in to comment.