mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-29 13:59:26 +01:00
don't retry jobs when processing returns a non-retryable error
This commit is contained in:
parent
b9fd7e1b77
commit
4708c0abef
1 changed files with 2 additions and 2 deletions
|
@ -341,7 +341,7 @@ export class ApInboxService {
|
||||||
// 対象が4xxならスキップ
|
// 対象が4xxならスキップ
|
||||||
if (err instanceof StatusError) {
|
if (err instanceof StatusError) {
|
||||||
if (!err.isRetryable) {
|
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}`;
|
return `Error in announce target ${target.id} - ${err.statusCode}`;
|
||||||
}
|
}
|
||||||
|
@ -461,7 +461,7 @@ export class ApInboxService {
|
||||||
return 'ok';
|
return 'ok';
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof StatusError && !err.isRetryable) {
|
if (err instanceof StatusError && !err.isRetryable) {
|
||||||
return `skip ${err.statusCode}`;
|
return `skip: ${err.statusCode}`;
|
||||||
} else {
|
} else {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue