We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0daccc6 commit b05bd90Copy full SHA for b05bd90
1 file changed
agent/worker.go
@@ -76,7 +76,9 @@ func acquireAgentSlot() (string, func()) {
76
}
77
78
if err := lockFileExclusive(lockFile); err != nil {
79
- lockFile.Close()
+ if cerr := lockFile.Close(); cerr != nil {
80
+ logrus.WithError(cerr).Warn("failed to close lock file")
81
+ }
82
continue
83
84
@@ -99,7 +101,9 @@ func acquireAgentSlot() (string, func()) {
99
101
100
102
cleanup := func() {
103
unlockFile(lockFile)
104
105
106
107
108
return uuid, cleanup
109
0 commit comments