fix(worker): fall through to download pipeline on any forward-path throw
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-07-31 05:25:16 +02:00
parent b28e38d233
commit 148d688d43
+7
View File
@@ -1770,6 +1770,7 @@ async function processOneArchiveSet(
// falls through into the existing download pipeline below so indexing
// completeness never regresses.
if (channel.allowsForwarding === true) {
try {
const forwardResult = await tryForwardArchiveSet(
ctx, archiveSet, setIdx, totalSets, previewMatches, ingestionRunId
);
@@ -1780,6 +1781,12 @@ async function processOneArchiveSet(
{ 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"
);
}
}
const tempPaths: string[] = [];