Skip to content

Commit aaecaa5

Browse files
bpiwowarclaude
andcommitted
fix: downgrade lock file not found message to debug level
The lock file may have been released already when the job completed, so not finding it in the cache is expected behavior, not an error. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d7a3347 commit aaecaa5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/experimaestro/locking.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -901,12 +901,15 @@ def release(self, dependency: "DynamicDependency") -> None:
901901
lock_key = self._lock_file_key(lock_path)
902902
lf = self.cache.get(lock_key)
903903
if lf is None:
904-
logging.error(
905-
"Could not find lock file for %s (%s)", dependency, lock_key
904+
# Lock file may have been released already (e.g., job completed)
905+
logger.debug(
906+
"Lock file not in cache for %s (%s) - may have been released already",
907+
dependency,
908+
lock_key,
906909
)
907910
return
908911

909-
logging.debug("Deleting %s from cache", lock_key)
912+
logger.debug("Deleting %s from cache", lock_key)
910913
del self.cache[lock_key]
911914

912915
self._do_release(dependency)

0 commit comments

Comments
 (0)