@rvoh/psychic-workers 0.2.7 → 0.2.8

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.
@@ -216,7 +216,7 @@ class Background {
216
216
  throw new ActivatingNamedQueueBackgroundWorkersWithoutWorkerConnection(namedWorkstream.name);
217
217
  const workerCount = namedWorkstream.workerCount ?? 1;
218
218
  for (let i = 0; i < workerCount; i++) {
219
- this._workers.push(new Background.Worker(namedWorkstreamFormattedQueueName, job => this.doWork(job), {
219
+ this._workers.push(new Background.Worker(namedWorkstreamFormattedQueueName, async (job) => await this.doWork(job), {
220
220
  group: {
221
221
  id: namedWorkstream.name,
222
222
  limit: namedWorkstream.rateLimit,
@@ -212,7 +212,7 @@ export class Background {
212
212
  throw new ActivatingNamedQueueBackgroundWorkersWithoutWorkerConnection(namedWorkstream.name);
213
213
  const workerCount = namedWorkstream.workerCount ?? 1;
214
214
  for (let i = 0; i < workerCount; i++) {
215
- this._workers.push(new Background.Worker(namedWorkstreamFormattedQueueName, job => this.doWork(job), {
215
+ this._workers.push(new Background.Worker(namedWorkstreamFormattedQueueName, async (job) => await this.doWork(job), {
216
216
  group: {
217
217
  id: namedWorkstream.name,
218
218
  limit: namedWorkstream.rateLimit,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "@rvoh/psychic-workers",
4
4
  "description": "Background job system for Psychic applications",
5
- "version": "0.2.7",
5
+ "version": "0.2.8",
6
6
  "author": "RVO Health",
7
7
  "repository": {
8
8
  "type": "git",