1.0.0-rc5 rc5
This commit is contained in:
@@ -11763,6 +11763,12 @@ class PipelineService extends EventEmitter {
|
||||
return false;
|
||||
}
|
||||
|
||||
_shouldPreserveSuccessfulRipJobForAnalyze(job = null) {
|
||||
// Never auto-delete jobs once a rip completed successfully. They may still
|
||||
// require manual review/playlist selection and must remain recoverable.
|
||||
return Number(job?.rip_successful || 0) === 1;
|
||||
}
|
||||
|
||||
async _restoreDriveLocksFromJobs() {
|
||||
const db = await getDb();
|
||||
const rows = await db.all(
|
||||
@@ -11846,6 +11852,14 @@ class PipelineService extends EventEmitter {
|
||||
if (!replaceableStates.has(rowState)) {
|
||||
continue;
|
||||
}
|
||||
if (this._shouldPreserveSuccessfulRipJobForAnalyze(row)) {
|
||||
logger.info('analyze:drive:preserve-successful-rip-job', {
|
||||
devicePath: normalizedPath,
|
||||
jobId: normalizedJobId,
|
||||
status: rowState
|
||||
});
|
||||
continue;
|
||||
}
|
||||
if (this.isContainerHistoryJob(row)) {
|
||||
containerRows.push(row);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user