@stacksjs/queue 0.58.57 → 0.58.59

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/dist/index.js CHANGED
@@ -8,7 +8,8 @@ class Job {
8
8
  rate;
9
9
  tries;
10
10
  backoff;
11
- constructor({ name, description, handle, rate, tries, backoff, action }) {
11
+ enabled;
12
+ constructor({ name, description, handle, rate, tries, backoff, action, enabled }) {
12
13
  this.name = name;
13
14
  this.description = description;
14
15
  this.handle = handle;
@@ -16,6 +17,7 @@ class Job {
16
17
  this.action = action;
17
18
  this.tries = tries;
18
19
  this.backoff = backoff;
20
+ this.enabled = enabled;
19
21
  }
20
22
  }
21
23
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/queue",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.59",
5
5
  "description": "The Stacks Queue system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/index.ts CHANGED
@@ -8,8 +8,9 @@ export class Job {
8
8
  rate: JobOptions['rate']
9
9
  tries: JobOptions['tries']
10
10
  backoff: JobOptions['backoff']
11
+ enabled: JobOptions['enabled']
11
12
 
12
- constructor({ name, description, handle, rate, tries, backoff, action }: JobOptions) {
13
+ constructor({ name, description, handle, rate, tries, backoff, action, enabled }: JobOptions) {
13
14
  this.name = name
14
15
  this.description = description
15
16
  this.handle = handle
@@ -17,5 +18,6 @@ export class Job {
17
18
  this.action = action
18
19
  this.tries = tries
19
20
  this.backoff = backoff
21
+ this.enabled = enabled
20
22
  }
21
23
  }