We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5a0388 commit a245b2bCopy full SHA for a245b2b
1 file changed
lambdas/functions/control-plane/src/scale-runners/scale-down.ts
@@ -230,11 +230,11 @@ async function lastChanceCheckOrphanRunner(runner: RunnerList): Promise<boolean>
230
logger.debug(
231
`Runner '${runner.instanceId}' is '${state.status}' and is currently '${state.busy ? 'busy' : 'idle'}'.`,
232
);
233
- const isOfflineAndBusy = state.status === 'offline' && state.busy;
+ const isOfflineAndBusy = state.status === 'offline' && (state.busy || !state.busy);
234
if (isOfflineAndBusy) {
235
isOrphan = true;
236
}
237
- logger.info(`Runner '${runner.instanceId}' ${isOrphan ? 'is judged to be' : 'is judged to not be'} orphaned.`);
+ logger.info(`Runner is judged to '${runner.instanceId}' ${isOrphan ? 'be' : 'not be'} orphaned.`);
238
return isOrphan;
239
240
0 commit comments