Skip to content

Commit

Permalink
Return lost variable
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirFilonov committed Dec 3, 2024
1 parent 57c9e8e commit 52fecb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keep/api/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -4590,6 +4590,7 @@ def set_last_alert(
)
with existed_or_new_session(session) as session:
with session.begin_nested() as transaction:
last_alert = get_last_alert_by_fingerprint(tenant_id, alert.fingerprint, session, for_update=True)

# To prevent rare, but possible race condition
# For example if older alert failed to process
Expand Down

0 comments on commit 52fecb3

Please sign in to comment.