Harden terminal upload finalization recovery
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
'use strict';
|
||||
|
||||
const pathApi = typeof require === 'function' ? require('path') : null;
|
||||
const protectedStatuses = new Set(['done', 'error', 'aborted', 'skipped']);
|
||||
const metadataVersion = 2;
|
||||
|
||||
function normalizeFile(file, platform) {
|
||||
@@ -247,7 +246,7 @@
|
||||
}
|
||||
|
||||
function removeRequirement(queueJobs, job, platform) {
|
||||
if (!job || protectedStatuses.has(job.status)) return [];
|
||||
if (!job || job.status !== 'preview' || job.interrupted) return [];
|
||||
const siblings = relatedJobs(queueJobs, job, platform);
|
||||
const removedHoster = normalizeHoster(job.hoster);
|
||||
for (const sibling of siblings) {
|
||||
|
||||
Reference in New Issue
Block a user