Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for same query_text refresh just execution once #7295

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
guyu committed Jan 24, 2025
commit 06c9a2b21a7d1ffca0c67a564e23caaf72a8221d
12 changes: 8 additions & 4 deletions redash/utils/locks.py
Original file line number Diff line number Diff line change
@@ -42,12 +42,16 @@ def release_lock(name, identifier):
logger.info("Lock released successfully, lock_name=[%s], identifier=[%s]", lock_name, identifier)
return True
pipe.unwatch()
logger.warning("Lock not owned by this identifier, lock_name=[%s], identifier=[%s]", lock_name,
identifier)
logger.warning(
"Lock not owned by this identifier, lock_name=[%s], identifier=[%s]", lock_name, identifier
)
break
except WatchError:
logger.warning("WatchError occurred, retrying lock release, lock_name=[%s], identifier=[%s]", lock_name,
identifier)
logger.warning(
"WatchError occurred, retrying lock release, lock_name=[%s], identifier=[%s]",
lock_name,
identifier,
)
except Exception as e:
logger.error("Error releasing lock: %s", str(e))
break