1.0.0-rc5 rc5

This commit is contained in:
2026-06-08 16:12:38 +02:00
parent 6d3c6fed0f
commit 04acda6400
7 changed files with 23 additions and 9 deletions
+14
View File
@@ -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;