fix: continue VOE account fallback rotation
CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe
2026-09-07 02:44:08 +02:00
parent 0f5cb68308
commit c8838d34b3
5 changed files with 62 additions and 3 deletions
+8 -1
View File
@@ -230,8 +230,8 @@ class UploadManager extends EventEmitter {
_shouldSkipRetryOnAccountError(err) {
if (!err) return false;
if (err.transientNetwork === true) return false;
// Explicit account-level flag from hoster parsers — highest priority.
if (err.accountError === true) return true;
if (classifyAccountFailure(err) !== 'none') return true;
if (!err.message) return false;
const m = String(err.message);
const PATTERNS = [
@@ -1109,6 +1109,13 @@ class UploadManager extends EventEmitter {
if (this._isFileRejectedError(err)) break;
if (this._isHosterTransientError(err)) break;
if (this._isTransientNetworkError(err)) break;
if (this._shouldSkipRetryOnAccountError(err)) {
this._rotLog('fast-fail', {
jobId, hoster: task.hoster, fileName, accountId: task.accountId,
attempt, error: err && err.message ? err.message : String(err), rotationRetry: true
});
break;
}
if (attempt >= maxAttempts) break;
}
}