We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3617608 commit b8af3f0Copy full SHA for b8af3f0
lambdas/functions/control-plane/src/scale-runners/scale-down.ts
@@ -231,8 +231,7 @@ async function lastChanceCheckOrphanRunner(runner: RunnerList): Promise<boolean>
231
`Runner '${runner.instanceId}' is '${state.status}' and is currently '${state.busy ? 'busy' : 'idle'}'.`,
232
);
233
const isOfflineAndBusy = state.status === 'offline' && state.busy;
234
- const isOfflineAndIdle = state.status === 'offline' && !state.busy;
235
- if (isOfflineAndBusy || isOfflineAndIdle) {
+ if (isOfflineAndBusy) {
236
isOrphan = true;
237
}
238
logger.info(`Runner '${runner.instanceId}' is judged to ${isOrphan ? 'be' : 'not be'} orphaned.`);
0 commit comments