Skip to content

Commit

Permalink
Reset redis pipeline at end of enqueue_query (#6540)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrosCat2013 authored Oct 21, 2023
1 parent 593b6ae commit 39766a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redash/tasks/queries/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def enqueue_query(query, data_source, user_id, is_api_key=False, scheduled_query

except redis.WatchError:
continue
finally:
pipe.reset()

if not job:
logger.error("[Manager][%s] Failed adding job for query.", query_hash)
Expand Down

0 comments on commit 39766a2

Please sign in to comment.