@stacksjs/queue 0.58.56 → 0.58.58

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