fix: queue running problem

This commit is contained in:
オスカー、 2024-02-16 15:04:18 +09:00 committed by 무라쿠모
parent de6db7aefc
commit 5d0012ceac
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7
4 changed files with 5 additions and 2 deletions

View File

@ -72,7 +72,7 @@ export class QueueService {
this.systemQueue.add('autoNoteRemoval', {
}, {
repeat: { pattern: '* */10 * * *' },
repeat: { pattern: '*/10 * * * *' },
removeOnComplete: true,
});
}

View File

@ -40,6 +40,7 @@ import { TickChartsProcessorService } from './processors/TickChartsProcessorServ
import { AggregateRetentionProcessorService } from './processors/AggregateRetentionProcessorService.js';
import { ExportFavoritesProcessorService } from './processors/ExportFavoritesProcessorService.js';
import { RelationshipProcessorService } from './processors/RelationshipProcessorService.js';
import { AutoNoteRemovalProcessorService } from './processors/AutoNoteRemovalProcessorService.js';
@Module({
imports: [
@ -80,6 +81,7 @@ import { RelationshipProcessorService } from './processors/RelationshipProcessor
DeliverProcessorService,
InboxProcessorService,
AggregateRetentionProcessorService,
AutoNoteRemovalProcessorService,
QueueProcessorService,
],
exports: [

View File

@ -41,7 +41,7 @@ import { CleanChartsProcessorService } from './processors/CleanChartsProcessorSe
import { CheckExpiredMutingsProcessorService } from './processors/CheckExpiredMutingsProcessorService.js';
import { CleanProcessorService } from './processors/CleanProcessorService.js';
import { AggregateRetentionProcessorService } from './processors/AggregateRetentionProcessorService.js';
import { AutoNoteRemovalProcessorService } from './processors/AutoNoteRemovalProcessorService.js';}
import { AutoNoteRemovalProcessorService } from './processors/AutoNoteRemovalProcessorService.js';
import { QueueLoggerService } from './QueueLoggerService.js';
import { QUEUE, baseWorkerOptions } from './const.js';

View File

@ -13,6 +13,7 @@ import { bindThis } from '@/decorators.js';
import { NoteDeleteService } from '@/core/NoteDeleteService.js';
import { IdService } from '@/core/IdService.js';
import { QueueLoggerService } from '../QueueLoggerService.js';
import type * as Bull from 'bullmq';
@Injectable()
export class AutoNoteRemovalProcessorService {