Skip to content

Commit

Permalink
chore: update readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
code-xhyun committed Apr 15, 2024
1 parent a62264a commit 3919004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ import { NotificationsQueue } from './notification.processor';
@Module({
imports: [
PulseModule.registerQueue('notifications', {
processEvery: '3 minutes',
processEvery: '1 minutes',
autoStart: false, // default: true
}),
],
Expand All @@ -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');
}
Expand Down

0 comments on commit 3919004

Please sign in to comment.