fix: refuse resume of a nonexistent preprocessing run
This commit is contained in:
@@ -282,7 +282,13 @@ export class PreprocessingStateStore {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
if ((error as NodeJS.ErrnoException).code !== "ENOENT") {
|
if ((error as NodeJS.ErrnoException).code !== "ENOENT") {
|
||||||
if (error instanceof PreprocessingStateError) throw error;
|
if (error instanceof PreprocessingStateError) throw error;
|
||||||
if (options.runId) throw error;
|
throw error;
|
||||||
|
}
|
||||||
|
if (options.runId) {
|
||||||
|
throw new PreprocessingStateError(
|
||||||
|
"preprocessing_resume_mismatch",
|
||||||
|
"Workspace preprocessing run is unavailable",
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const job: PreprocessingJobState = {
|
const job: PreprocessingJobState = {
|
||||||
|
|||||||
Reference in New Issue
Block a user