1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-04-12 14:39:36 -05:00

don't retry jobs when processing returns a non-retryable error

This commit is contained in:
Hazelnoot 2024-11-03 10:46:58 -05:00 committed by fly_mc
parent af9ab8fcce
commit 18e77cc2e9

View file

@ -340,7 +340,7 @@ export class ApInboxService {
// 対象が4xxならスキップ
if (err instanceof StatusError) {
if (!err.isRetryable) {
return `Ignored announce target ${target.id} - ${err.statusCode}`;
return `skip: ignored announce target ${target.id} - ${err.statusCode}`;
}
return `Error in announce target ${target.id} - ${err.statusCode}`;
}
@ -460,7 +460,7 @@ export class ApInboxService {
return 'ok';
} catch (err) {
if (err instanceof StatusError && !err.isRetryable) {
return `skip ${err.statusCode}`;
return `skip: ${err.statusCode}`;
} else {
throw err;
}