File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lambdas/functions/control-plane/src/scale-runners Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -230,11 +230,11 @@ async function lastChanceCheckOrphanRunner(runner: RunnerList): Promise<boolean>
230
230
logger . debug (
231
231
`Runner '${ runner . instanceId } ' is '${ state . status } ' and is currently '${ state . busy ? 'busy' : 'idle' } '.` ,
232
232
) ;
233
- const isOfflineAndBusy = state . status === 'offline' && state . busy ;
233
+ const isOfflineAndBusy = state . status === 'offline' && ( state . busy || ! state . busy ) ;
234
234
if ( isOfflineAndBusy ) {
235
235
isOrphan = true ;
236
236
}
237
- logger . info ( `Runner '${ runner . instanceId } ' ${ isOrphan ? 'is judged to be' : 'is judged to not be' } orphaned.` ) ;
237
+ logger . info ( `Runner is judged to '${ runner . instanceId } ' ${ isOrphan ? 'be' : 'not be' } orphaned.` ) ;
238
238
return isOrphan ;
239
239
}
240
240
You can’t perform that action at this time.
0 commit comments