fix: queue running problem
This commit is contained in:
parent
de6db7aefc
commit
5d0012ceac
@ -72,7 +72,7 @@ export class QueueService {
|
||||
|
||||
this.systemQueue.add('autoNoteRemoval', {
|
||||
}, {
|
||||
repeat: { pattern: '* */10 * * *' },
|
||||
repeat: { pattern: '*/10 * * * *' },
|
||||
removeOnComplete: true,
|
||||
});
|
||||
}
|
||||
|
@ -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: [
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user