Skip to content

Commit

Permalink
debug: "you know the drill"
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Dec 9, 2024
1 parent 129bf32 commit 0603b43
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions neps/state/filebased.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import contextlib
import json
import logging
import os
Expand Down Expand Up @@ -353,3 +354,12 @@ def lock(
" environment variables to increase the timeout:"
f"\n\n{pprint.pformat(ENV_VARS_USED)}"
) from e
finally:
if worker_id is not None:
with contextlib.suppress(Exception):
logger.debug(
"Worker %s released lock on %s at %s",
worker_id,
self.lock_path,
time.time(),
)

0 comments on commit 0603b43

Please sign in to comment.