mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 22:49:24 +09:00
fix(backend): restore start method in QueueProcessorService (#87)
This commit is contained in:
parent
e8cf53a1ea
commit
e88617e3c3
@ -34,6 +34,7 @@ export async function jobQueue() {
|
|||||||
});
|
});
|
||||||
jobQueue.enableShutdownHooks();
|
jobQueue.enableShutdownHooks();
|
||||||
|
|
||||||
|
jobQueue.get(QueueProcessorService).start();
|
||||||
jobQueue.get(ChartManagementService).start();
|
jobQueue.get(ChartManagementService).start();
|
||||||
|
|
||||||
return jobQueue;
|
return jobQueue;
|
||||||
|
@ -77,7 +77,10 @@ export class QueueProcessorService implements OnApplicationShutdown {
|
|||||||
private cleanProcessorService: CleanProcessorService,
|
private cleanProcessorService: CleanProcessorService,
|
||||||
) {
|
) {
|
||||||
this.logger = this.queueLoggerService.logger;
|
this.logger = this.queueLoggerService.logger;
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public start(): void {
|
||||||
function renderError(e: Error): any {
|
function renderError(e: Error): any {
|
||||||
if (e) { // 何故かeがundefinedで来ることがある
|
if (e) { // 何故かeがundefinedで来ることがある
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user