diff --git a/internal/orchestrator/system_properties/properties.go b/internal/orchestrator/system_properties/properties.go index 03083d89..4e4037b2 100644 --- a/internal/orchestrator/system_properties/properties.go +++ b/internal/orchestrator/system_properties/properties.go @@ -211,6 +211,9 @@ func getLock(flock *flock.Flock, lockFn lockFunc, errorMsg string) (UnlockFunc, if err := flock.Unlock(); err != nil { return fmt.Errorf("failed to unlock file lock for %s: %w", flock.Path(), err) } + if err := os.Remove(flock.Path()); err != nil && !os.IsNotExist(err) { + slog.Warn("failed to remove lock file", "path", flock.Path(), "error", err) + } return nil }, nil }