fix(backend): restore start method in QueueProcessorService (#87)

This commit is contained in:
まっちゃとーにゅ 2023-06-15 19:29:27 +09:00 committed by GitHub
parent e8cf53a1ea
commit e88617e3c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,7 @@ export async function jobQueue() {
});
jobQueue.enableShutdownHooks();
jobQueue.get(QueueProcessorService).start();
jobQueue.get(ChartManagementService).start();
return jobQueue;

View File

@ -77,7 +77,10 @@ export class QueueProcessorService implements OnApplicationShutdown {
private cleanProcessorService: CleanProcessorService,
) {
this.logger = this.queueLoggerService.logger;
}
@bindThis
public start(): void {
function renderError(e: Error): any {
if (e) { // 何故かeがundefinedで来ることがある
return {