Revert "Merge pull request #86 from MisskeyIO/revert-bullmq"
This reverts commite8cf53a1ea. Revert "外部サーバーへの配送が行われない問題を修正 (たぶん) (#98)" This reverts commit53931ec59a. Revert "fix(backend): restore start method in QueueProcessorService (#87)" This reverts commite88617e3c3.
This commit is contained in:
parent
eca41ca472
commit
757eae25bf
41 changed files with 540 additions and 510 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { Inject, Injectable } from '@nestjs/common';
|
||||
import * as Bull from 'bullmq';
|
||||
import { DI } from '@/di-symbols.js';
|
||||
import type { DriveFilesRepository, InstancesRepository } from '@/models/index.js';
|
||||
import type { Config } from '@/config.js';
|
||||
|
|
@ -16,7 +17,6 @@ import { StatusError } from '@/misc/status-error.js';
|
|||
import { UtilityService } from '@/core/UtilityService.js';
|
||||
import { bindThis } from '@/decorators.js';
|
||||
import { QueueLoggerService } from '../QueueLoggerService.js';
|
||||
import type Bull from 'bull';
|
||||
import type { DeliverJobData } from '../types.js';
|
||||
|
||||
@Injectable()
|
||||
|
|
@ -121,11 +121,9 @@ export class DeliverProcessorService {
|
|||
isSuspended: true,
|
||||
});
|
||||
});
|
||||
return `${host} is gone`;
|
||||
throw new Bull.UnrecoverableError(`${host} is gone`);
|
||||
}
|
||||
// HTTPステータスコード4xxはクライアントエラーであり、それはつまり
|
||||
// 何回再送しても成功することはないということなのでエラーにはしないでおく
|
||||
return `${res.statusCode} ${res.statusMessage}`;
|
||||
throw new Bull.UnrecoverableError(`${res.statusCode} ${res.statusMessage}`);
|
||||
}
|
||||
|
||||
// 5xx etc.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue