mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
Merge scan into ingest flow
This commit is contained in:
parent
75e04cfa56
commit
ecebc018b9
31 changed files with 747 additions and 216 deletions
|
|
@ -150,8 +150,8 @@ function writeRuntimeChecks(io: KtxCliIo, checks: ManagedPythonRuntimeDoctorChec
|
|||
}
|
||||
}
|
||||
|
||||
function hasRuntimeCheckFailures(checks: ManagedPythonRuntimeDoctorCheck[]): boolean {
|
||||
return checks.some((check) => check.status === 'fail');
|
||||
function hasRuntimeStatusFailure(status: ManagedPythonRuntimeStatus): boolean {
|
||||
return status.kind !== 'ready';
|
||||
}
|
||||
|
||||
export async function runKtxRuntime(
|
||||
|
|
@ -203,7 +203,7 @@ export async function runKtxRuntime(
|
|||
writeStatus(io, status);
|
||||
writeRuntimeChecks(io, checks);
|
||||
}
|
||||
return hasRuntimeCheckFailures(checks) ? 1 : 0;
|
||||
return hasRuntimeStatusFailure(status) ? 1 : 0;
|
||||
}
|
||||
const _exhaustive: never = args;
|
||||
return _exhaustive;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue