From 3919004b0292cc2e84aca483f37057099d673083 Mon Sep 17 00:00:00 2001 From: code-xhyun Date: Mon, 15 Apr 2024 13:39:32 +0900 Subject: [PATCH] chore: update readme example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a3fabe2..4bf2220 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ import { NotificationsQueue } from './notification.processor'; @Module({ imports: [ PulseModule.registerQueue('notifications', { - processEvery: '3 minutes', + processEvery: '1 minutes', autoStart: false, // default: true }), ], @@ -117,7 +117,7 @@ import { Every, Queue } from '@pulsecron/nestjs-pulse'; @Queue('notifications') export class NotificationsQueue { - @Every({ name: 'send notifications', interval: '3 minutes' }) + @Every({ name: 'send notifications', interval: '2 minutes' }) async sendNotifications(job: Job) { console.log('Sending notifications'); }