@stacksjs/queue 0.68.0 → 0.69.1

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.
@@ -0,0 +1,25 @@
1
+ import type { JobOptions } from '@stacksjs/types';
2
+
3
+ export declare class Job {
4
+ name: JobOptions['name']
5
+ description: JobOptions['description']
6
+ action?: JobOptions['action']
7
+ handle?: JobOptions['handle']
8
+ rate: JobOptions['rate']
9
+ tries: JobOptions['tries']
10
+ backoff: JobOptions['backoff']
11
+ backoffConfig: JobOptions['backoffConfig']
12
+ enabled: JobOptions['enabled']
13
+
14
+ constructor({ name, description, handle, rate, tries, backoff, backoffConfig, action, enabled }: JobOptions) {
15
+ this.name = name
16
+ this.description = description
17
+ this.handle = handle
18
+ this.rate = rate
19
+ this.action = action
20
+ this.tries = tries
21
+ this.backoff = backoff
22
+ this.backoffConfig = backoffConfig
23
+ this.enabled = enabled
24
+ }
25
+ }
Binary file
package/dist/index.d.ts CHANGED
@@ -1,24 +1,3 @@
1
- import type { JobOptions } from '@stacksjs/types';
2
-
3
- export { DeferQueue } from '@poppinss/defer'
4
- export declare class Job {
5
- name: JobOptions['name']
6
- description: JobOptions['description']
7
- action?: JobOptions['action']
8
- handle?: JobOptions['handle']
9
- rate: JobOptions['rate']
10
- tries: JobOptions['tries']
11
- backoff: JobOptions['backoff']
12
- enabled: JobOptions['enabled']
13
-
14
- constructor({ name, description, handle, rate, tries, backoff, action, enabled }: JobOptions) {
15
- this.name = name
16
- this.description = description
17
- this.handle = handle
18
- this.rate = rate
19
- this.action = action
20
- this.tries = tries
21
- this.backoff = backoff
22
- this.enabled = enabled
23
- }
24
- }
1
+ export * from './action'
2
+ export * from './job'
3
+ export * from './process'