Skip to content

Commit

Permalink
add queue prefix for bull
Browse files Browse the repository at this point in the history
  • Loading branch information
demshy committed Sep 13, 2024
1 parent 9049f77 commit d572043
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/activities/activities.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ import { env } from 'process';
forwardRef(() => AuditModule), // because audit module is imported in usersmodule and this constitutes a circular dependency (users->audit->activities->users...)
forwardRef(() => UsersModule),
BullModule.registerQueue({
name: `${env.ENVIRONMENT}-summary`,
name: 'summary',
prefix: `bull:${env.ENVIRONMENT}`,
}),
CragsModule,
],
Expand Down
3 changes: 2 additions & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ import { env } from 'process';
inject: [ConfigService],
}),
BullModule.registerQueue({
name: `${env.ENVIRONMENT}-summary`,
name: 'summary',
prefix: `bull:${env.ENVIRONMENT}`,
}),
],
providers: [],
Expand Down
3 changes: 2 additions & 1 deletion src/audit/audit.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ import { env } from 'process';
]),
AuthModule,
BullModule.registerQueue({
name: `${env.ENVIRONMENT}-summary`,
name: 'summary',
prefix: `bull:${env.ENVIRONMENT}`,
}),
forwardRef(() => UsersModule),
forwardRef(() => CragsModule),
Expand Down
3 changes: 2 additions & 1 deletion src/crags/crags.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ import { env } from 'process';
]),
forwardRef(() => AuditModule),
BullModule.registerQueue({
name: `${env.ENVIRONMENT}-summary`,
name: 'summary',
prefix: `bull:${env.ENVIRONMENT}`,
}),
],
providers: [
Expand Down

0 comments on commit d572043

Please sign in to comment.