@rvoh/psychic-workers 1.0.0 → 1.2.0

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/README.md CHANGED
@@ -1,5 +1,3 @@
1
- > ATTENTION: we are currently in the process of releasing this code to the world, as of the afternoon of March 10th, 2025. This notice will be removed, and the version of this repo will be bumped to 1.0.0, once all of the repos have been migrated to the new spaces and we can verify that it is all working. This is anticipated to take 1 day.
2
-
3
1
  # Psychic workers
4
2
 
5
3
  Documentation for this repo can be found at [https://psychic-docs.netlify.app/docs/plugins/workers/overview](https://psychic-docs.netlify.app/docs/plugins/workers/overview)
@@ -488,7 +488,7 @@ class Background {
488
488
  async modelInstanceMethod(modelInstance, method, { delaySeconds, jobId, args = [], jobConfig = {}, }) {
489
489
  this.connect();
490
490
  await this._addToQueue('BackgroundJobQueueModelInstanceJob', {
491
- id: modelInstance.primaryKeyValue,
491
+ id: modelInstance.primaryKeyValue(),
492
492
  globalName: modelInstance.constructor.globalName,
493
493
  method,
494
494
  args,
@@ -484,7 +484,7 @@ export class Background {
484
484
  async modelInstanceMethod(modelInstance, method, { delaySeconds, jobId, args = [], jobConfig = {}, }) {
485
485
  this.connect();
486
486
  await this._addToQueue('BackgroundJobQueueModelInstanceJob', {
487
- id: modelInstance.primaryKeyValue,
487
+ id: modelInstance.primaryKeyValue(),
488
488
  globalName: modelInstance.constructor.globalName,
489
489
  method,
490
490
  args,
@@ -1,4 +1,3 @@
1
- import { IdType } from '@rvoh/dream';
2
1
  import BaseBackgroundedService from '../background/BaseBackgroundedService.js';
3
2
  import BaseScheduledService from '../background/BaseScheduledService.js';
4
3
  import { PsychicBackgroundNativeBullMQOptions, PsychicBackgroundSimpleOptions } from '../psychic-app-workers/index.js';
@@ -7,7 +6,7 @@ export interface BackgroundJobData {
7
6
  /**
8
7
  * the id of the background job. This is provided by BullMQ
9
8
  */
10
- id?: IdType;
9
+ id?: string | number;
11
10
  /**
12
11
  * the method name of the method on the provided class
13
12
  */
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": "1.0.0",
5
+ "version": "1.2.0",
6
6
  "author": "RVO Health",
7
7
  "repository": {
8
8
  "type": "git",
@@ -43,10 +43,10 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@eslint/js": "=9.0.0",
46
- "@rvoh/dream": "^0.39.0",
47
- "@rvoh/dream-spec-helpers": "^0.2.4",
48
- "@rvoh/psychic": "^0.35.1",
49
- "@rvoh/psychic-spec-helpers": "^0.6.0",
46
+ "@rvoh/dream": "^1.4.0",
47
+ "@rvoh/dream-spec-helpers": "^1.1.0",
48
+ "@rvoh/psychic": "^1.2.0",
49
+ "@rvoh/psychic-spec-helpers": "^1.0.1",
50
50
  "@socket.io/redis-adapter": "^8.3.0",
51
51
  "@socket.io/redis-emitter": "^5.1.0",
52
52
  "@types/express": "^4",
@@ -73,4 +73,4 @@
73
73
  "vitest": "^3.1.3"
74
74
  },
75
75
  "packageManager": "yarn@4.7.0"
76
- }
76
+ }
package/CHANGELOG.md DELETED
File without changes