mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-09-21 05:21:43 +00:00
fix(worker): fall through to download pipeline on any forward-path throw
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
+16
-9
@@ -1770,16 +1770,23 @@ async function processOneArchiveSet(
|
|||||||
// falls through into the existing download pipeline below so indexing
|
// falls through into the existing download pipeline below so indexing
|
||||||
// completeness never regresses.
|
// completeness never regresses.
|
||||||
if (channel.allowsForwarding === true) {
|
if (channel.allowsForwarding === true) {
|
||||||
const forwardResult = await tryForwardArchiveSet(
|
try {
|
||||||
ctx, archiveSet, setIdx, totalSets, previewMatches, ingestionRunId
|
const forwardResult = await tryForwardArchiveSet(
|
||||||
);
|
ctx, archiveSet, setIdx, totalSets, previewMatches, ingestionRunId
|
||||||
if (forwardResult !== undefined) {
|
);
|
||||||
return forwardResult;
|
if (forwardResult !== undefined) {
|
||||||
|
return forwardResult;
|
||||||
|
}
|
||||||
|
accountLog.info(
|
||||||
|
{ fileName: archiveName },
|
||||||
|
"Forward path unavailable for this archive — falling back to download+reupload"
|
||||||
|
);
|
||||||
|
} catch (forwardPathErr) {
|
||||||
|
accountLog.warn(
|
||||||
|
{ err: forwardPathErr, fileName: archiveName },
|
||||||
|
"Forward path threw unexpectedly — falling back to download+reupload"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
accountLog.info(
|
|
||||||
{ fileName: archiveName },
|
|
||||||
"Forward path unavailable for this archive — falling back to download+reupload"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const tempPaths: string[] = [];
|
const tempPaths: string[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user