@yrpri/api 9.0.194 → 9.0.195

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yrpri/api",
3
- "version": "9.0.194",
3
+ "version": "9.0.195",
4
4
  "license": "MIT",
5
5
  "author": "Robert Bjarnason & Citizens Foundation",
6
6
  "repository": {
@@ -27,13 +27,14 @@ if (redisUrl.startsWith("rediss://")) {
27
27
  };
28
28
  }
29
29
  log.info("Starting app access to BullMQ Queue", { redis_url: redisUrl });
30
+ MAIN_WORKER_QUEUE_NAME = process.env.MAIN_WORKER_QUEUE_NAME || 'mainYpQueue';
30
31
  class YpQueue {
31
32
  constructor() {
32
33
  log.info("Create YpQueue");
33
34
  this.processors = new Map(); // Store processors per job name
34
35
  this.workers = new Map(); // Store workers per job name
35
36
  this.queues = new Map(); // Store queues per job name
36
- this.queuePrefix = 'mainYpQueue';
37
+ this.queuePrefix = MAIN_WORKER_QUEUE_NAME;
37
38
  }
38
39
  get defaultJobOptions() {
39
40
  return {
@@ -4,7 +4,7 @@ declare class YpQueue {
4
4
  processors: Map<any, any>;
5
5
  workers: Map<any, any>;
6
6
  queues: Map<any, any>;
7
- queuePrefix: string;
7
+ queuePrefix: any;
8
8
  get defaultJobOptions(): {
9
9
  attempts: number;
10
10
  removeOnComplete: boolean;