stacks 0.58.57 → 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/core/actions/dist/src/index.js +9 -3
- package/core/actions/dist/src/release.js +9 -3
- package/core/actions/dist/src/upgrade.js +1 -1
- package/core/actions/package.json +1 -1
- package/core/actions/src/action.ts +11 -3
- package/core/ai/dist/index.js +4 -4
- package/core/ai/package.json +3 -3
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/api/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/buddy/package.json +1 -1
- package/core/build/package.json +1 -1
- package/core/bun-create/bud/package.json +1 -1
- package/core/bun-create/buddy/package.json +1 -1
- package/core/bun-create/stack/package.json +1 -1
- package/core/bun-create/stacks/package.json +1 -1
- package/core/bun-create/stx/package.json +1 -1
- package/core/bun-plugin-yaml/package.json +1 -1
- package/core/cache/package.json +2 -2
- package/core/chat/package.json +8 -8
- package/core/cli/dist/index.js +1 -1
- package/core/cli/package.json +1 -1
- package/core/cloud/dist/index.js +69 -39
- package/core/cloud/package.json +28 -28
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
- package/core/cloud/src/cloud/queue.ts +91 -51
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
- package/core/collections/package.json +1 -1
- package/core/config/package.json +1 -1
- package/core/database/package.json +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +9 -9
- package/core/development/package.json +1 -1
- package/core/dns/package.json +4 -4
- package/core/docs/package.json +1 -1
- package/core/email/package.json +12 -12
- package/core/enums/package.json +1 -1
- package/core/env/package.json +1 -1
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/package.json +1 -1
- package/core/events/package.json +1 -1
- package/core/faker/package.json +1 -1
- package/core/git/package.json +1 -1
- package/core/health/package.json +1 -1
- package/core/http/package.json +1 -1
- package/core/lint/package.json +1 -1
- package/core/logging/package.json +1 -1
- package/core/notifications/package.json +22 -22
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/path/package.json +1 -1
- package/core/payments/package.json +1 -1
- package/core/push/package.json +5 -5
- package/core/query-builder/package.json +1 -1
- package/core/queue/dist/index.js +3 -1
- package/core/queue/package.json +1 -1
- package/core/queue/src/index.ts +3 -1
- package/core/raycast/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/repl/package.json +1 -1
- package/core/router/package.json +1 -1
- package/core/scheduler/dist/index.js +4 -0
- package/core/scheduler/package.json +1 -1
- package/core/scheduler/src/index.ts +1 -0
- package/core/scheduler/src/schedule.ts +5 -0
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +1 -1
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/package.json +11 -11
- package/core/storage/package.json +1 -1
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +1 -1
- package/core/testing/package.json +1 -1
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +3 -3
- package/core/types/src/cron-jobs.ts +6 -1
- package/core/ui/package.json +6 -6
- package/core/utils/dist/index.js +32 -1
- package/core/utils/package.json +1 -1
- package/core/utils/src/index.ts +1 -0
- package/core/utils/src/retry.ts +33 -0
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +1 -1
- package/core/whois/package.json +1 -1
- package/core/x-ray/package.json +1 -1
- package/core/zsh-buddy/package.json +1 -1
- package/ide/vscode/package.json +1 -1
- package/package.json +1 -1
|
@@ -26,57 +26,33 @@ export class QueueStack {
|
|
|
26
26
|
const jobsDir = path.jobsPath()
|
|
27
27
|
|
|
28
28
|
try {
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
rule.addTarget(new EcsTask({
|
|
54
|
-
cluster: this.props.cluster,
|
|
55
|
-
taskDefinition: this.props.taskDefinition,
|
|
56
|
-
containerOverrides: [
|
|
57
|
-
{
|
|
58
|
-
containerName: `${this.props.appName}-${this.props.appEnv}-api`,
|
|
59
|
-
environment: [
|
|
60
|
-
{
|
|
61
|
-
name: 'QUEUE_WORKER',
|
|
62
|
-
value: 'true',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: 'JOB',
|
|
66
|
-
value: file,
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
|
|
72
|
-
retryAttempts: 3,
|
|
73
|
-
|
|
74
|
-
subnetSelection: {
|
|
75
|
-
subnetType: ec2.SubnetType.PUBLIC, // SubnetType.PRIVATE_WITH_EGRESS
|
|
76
|
-
},
|
|
77
|
-
}))
|
|
78
|
-
}
|
|
29
|
+
const jobFiles = await fs.readdir(jobsDir)
|
|
30
|
+
const actionFiles = await fs.readdir(actionsDir)
|
|
31
|
+
const jobs = []
|
|
32
|
+
|
|
33
|
+
// then, need to loop through all app/Jobs/*.ts and create a rule for each, potentially overwriting the Schedule.ts jobs
|
|
34
|
+
for (const file of jobFiles) {
|
|
35
|
+
if (!file.endsWith('.ts'))
|
|
36
|
+
continue
|
|
37
|
+
|
|
38
|
+
const filePath = path.jobsPath(file)
|
|
39
|
+
|
|
40
|
+
// Await the loading of the job module
|
|
41
|
+
jobs.push(await this.loadModule(filePath))
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
for (const file of actionFiles) {
|
|
45
|
+
if (!file.endsWith('.ts'))
|
|
46
|
+
continue
|
|
47
|
+
|
|
48
|
+
const filePath = path.actionsPath(file)
|
|
49
|
+
|
|
50
|
+
// Await the loading of the job module
|
|
51
|
+
jobs.push(await this.loadModule(filePath))
|
|
79
52
|
}
|
|
53
|
+
|
|
54
|
+
for (const job of jobs)
|
|
55
|
+
await this.createQueueRule(job)
|
|
80
56
|
}
|
|
81
57
|
catch (err) {
|
|
82
58
|
console.error('Error reading the jobs directory:', err)
|
|
@@ -96,9 +72,73 @@ export class QueueStack {
|
|
|
96
72
|
}
|
|
97
73
|
}
|
|
98
74
|
|
|
99
|
-
async
|
|
75
|
+
async loadModule(filePath: string) {
|
|
100
76
|
const jobModule = await import(filePath)
|
|
101
77
|
|
|
102
78
|
return jobModule
|
|
103
79
|
}
|
|
80
|
+
|
|
81
|
+
createQueueRule(job: any) {
|
|
82
|
+
// Now you can safely access job.default.rate
|
|
83
|
+
const rate = job.default?.rate
|
|
84
|
+
|
|
85
|
+
// if no rate or job is disabled, no need to schedule, skip
|
|
86
|
+
if (!rate || job.default?.enabled === false)
|
|
87
|
+
return
|
|
88
|
+
|
|
89
|
+
// Convert the rate to a Schedule object
|
|
90
|
+
const schedule = Schedule.cron(this.cronScheduleFromRate(rate))
|
|
91
|
+
|
|
92
|
+
const id = `QueueRule${pascalCase(file.replace('.ts', ''))}`
|
|
93
|
+
|
|
94
|
+
// Perform operations with the jobModule.default as needed
|
|
95
|
+
const rule = new Rule(this.scope, id, {
|
|
96
|
+
// schedule to run every second
|
|
97
|
+
ruleName: `${this.props.appName}-${this.props.appEnv}-queue-rule-${slug(file.replace('.ts', ''))}`,
|
|
98
|
+
schedule,
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
rule.addTarget(new EcsTask({
|
|
102
|
+
cluster: this.props.cluster,
|
|
103
|
+
taskDefinition: this.props.taskDefinition,
|
|
104
|
+
containerOverrides: [
|
|
105
|
+
{
|
|
106
|
+
containerName: `${this.props.appName}-${this.props.appEnv}-api`,
|
|
107
|
+
environment: [
|
|
108
|
+
{
|
|
109
|
+
name: 'QUEUE_WORKER',
|
|
110
|
+
value: 'true',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'JOB',
|
|
114
|
+
value: file,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'JOB_BACKOFF_FACTOR',
|
|
118
|
+
value: jobModule.default?.backoffFactor,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'JOB_RETRIES',
|
|
122
|
+
value: jobModule.default?.tries,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'JOB_INITIAL_DELAY',
|
|
126
|
+
value: jobModule.default?.initialDelay,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'JOB_JITTER',
|
|
130
|
+
value: jobModule.default?.jitter,
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
|
|
136
|
+
retryAttempts: 1, // we utilize a custom retry mechanism in the job itself
|
|
137
|
+
// retryAttempts: jobModule.default.tries || 3,
|
|
138
|
+
|
|
139
|
+
subnetSelection: {
|
|
140
|
+
subnetType: ec2.SubnetType.PUBLIC, // SubnetType.PRIVATE_WITH_EGRESS
|
|
141
|
+
},
|
|
142
|
+
}))
|
|
143
|
+
}
|
|
104
144
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacks-router-layer",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.58",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@stacksjs/router": "^0.58.
|
|
13
|
+
"@stacksjs/router": "^0.58.57"
|
|
14
14
|
}
|
|
15
15
|
}
|
package/core/config/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/desktop",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.58",
|
|
5
5
|
"description": "The Stacks Desktop engine.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -62,20 +62,20 @@
|
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@stacksjs/build": "workspace:*",
|
|
64
64
|
"@stacksjs/server": "workspace:*",
|
|
65
|
-
"@tauri-apps/api": "1.5.3",
|
|
66
|
-
"@tauri-apps/cli": "1.5.9",
|
|
67
|
-
"unified-network": "0.6.4",
|
|
65
|
+
"@tauri-apps/api": "^1.5.3",
|
|
66
|
+
"@tauri-apps/cli": "^1.5.9",
|
|
67
|
+
"unified-network": "^0.6.4",
|
|
68
68
|
"unstorage": "^1.10.1",
|
|
69
|
-
"vue": "3.4.
|
|
69
|
+
"vue": "^3.4.16"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@stacksjs/build": "workspace:*",
|
|
73
73
|
"@stacksjs/server": "workspace:*",
|
|
74
|
-
"@tauri-apps/api": "1.5.3",
|
|
75
|
-
"@tauri-apps/cli": "1.5.9",
|
|
76
|
-
"unified-network": "0.6.4",
|
|
74
|
+
"@tauri-apps/api": "^1.5.3",
|
|
75
|
+
"@tauri-apps/cli": "^1.5.9",
|
|
76
|
+
"unified-network": "^0.6.4",
|
|
77
77
|
"unstorage": "^1.10.1",
|
|
78
|
-
"vue": "3.4.
|
|
78
|
+
"vue": "^3.4.16"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@stacksjs/development": "workspace:*"
|
package/core/dns/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/dns",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.58",
|
|
5
5
|
"description": "Easily manage your DNS.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"prepublishOnly": "bun --bun run build"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@aws-sdk/client-route-53": "^3.
|
|
55
|
-
"@aws-sdk/client-route-53-domains": "^3.
|
|
54
|
+
"@aws-sdk/client-route-53": "^3.509.0",
|
|
55
|
+
"@aws-sdk/client-route-53-domains": "^3.509.0",
|
|
56
56
|
"@stacksjs/actions": "workspace:*",
|
|
57
57
|
"@stacksjs/error-handling": "workspace:*",
|
|
58
58
|
"@stacksjs/path": "workspace:*",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"aws-cdk-lib": "^2.126.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@aws-sdk/client-route-53": "^3.
|
|
64
|
+
"@aws-sdk/client-route-53": "^3.509.0",
|
|
65
65
|
"@stacksjs/actions": "workspace:*",
|
|
66
66
|
"@stacksjs/error-handling": "workspace:*",
|
|
67
67
|
"@stacksjs/path": "workspace:*",
|
package/core/docs/package.json
CHANGED
package/core/email/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/email",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.58",
|
|
5
5
|
"description": "The Stacks Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@maizzle/framework": "^4.7.5",
|
|
68
|
-
"@novu/stateless": "^0.23.
|
|
68
|
+
"@novu/stateless": "^0.23.1",
|
|
69
69
|
"@stacksjs/cli": "workspace:*",
|
|
70
70
|
"@stacksjs/config": "workspace:*",
|
|
71
71
|
"@stacksjs/error-handling": "workspace:*",
|
|
@@ -78,16 +78,16 @@
|
|
|
78
78
|
"uuid": "^9.0.1"
|
|
79
79
|
},
|
|
80
80
|
"optionalDependencies": {
|
|
81
|
-
"@novu/emailjs": "^0.23.
|
|
82
|
-
"@novu/mailgun": "^0.23.
|
|
83
|
-
"@novu/mailjet": "^0.23.
|
|
84
|
-
"@novu/mandrill": "^0.23.
|
|
85
|
-
"@novu/netcore": "^0.23.
|
|
86
|
-
"@novu/node": "^0.23.
|
|
87
|
-
"@novu/nodemailer": "^0.23.
|
|
88
|
-
"@novu/postmark": "^0.23.
|
|
89
|
-
"@novu/sendgrid": "^0.23.
|
|
90
|
-
"@novu/ses": "^0.23.
|
|
81
|
+
"@novu/emailjs": "^0.23.1",
|
|
82
|
+
"@novu/mailgun": "^0.23.1",
|
|
83
|
+
"@novu/mailjet": "^0.23.1",
|
|
84
|
+
"@novu/mandrill": "^0.23.1",
|
|
85
|
+
"@novu/netcore": "^0.23.1",
|
|
86
|
+
"@novu/node": "^0.23.1",
|
|
87
|
+
"@novu/nodemailer": "^0.23.1",
|
|
88
|
+
"@novu/postmark": "^0.23.1",
|
|
89
|
+
"@novu/sendgrid": "^0.23.1",
|
|
90
|
+
"@novu/ses": "^0.23.1"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@stacksjs/development": "workspace:*"
|
package/core/enums/package.json
CHANGED
package/core/env/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.58",
|
|
5
5
|
"description": "The Stacks.js ESLint config preset, heavily inspired by Anthony's ESLint config.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
7
7
|
"license": "MIT",
|
package/core/events/package.json
CHANGED
package/core/faker/package.json
CHANGED
package/core/git/package.json
CHANGED
package/core/health/package.json
CHANGED
package/core/http/package.json
CHANGED
package/core/lint/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/notifications",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.58",
|
|
5
5
|
"description": "The Stacks notifications integration.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -76,27 +76,27 @@
|
|
|
76
76
|
"@stacksjs/types": "workspace:*"
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
79
|
-
"@novu/discord": "^0.23.
|
|
80
|
-
"@novu/emailjs": "^0.23.
|
|
81
|
-
"@novu/gupshup": "^0.23.
|
|
82
|
-
"@novu/mailgun": "^0.23.
|
|
83
|
-
"@novu/mailjet": "^0.23.
|
|
84
|
-
"@novu/mandrill": "^0.23.
|
|
85
|
-
"@novu/netcore": "^0.23.
|
|
86
|
-
"@novu/nexmo": "^0.23.
|
|
87
|
-
"@novu/node": "^0.23.
|
|
88
|
-
"@novu/nodemailer": "^0.23.
|
|
89
|
-
"@novu/plivo": "^0.23.
|
|
90
|
-
"@novu/postmark": "^0.23.
|
|
91
|
-
"@novu/sendgrid": "^0.23.
|
|
92
|
-
"@novu/ses": "^0.23.
|
|
93
|
-
"@novu/slack": "^0.23.
|
|
94
|
-
"@novu/sms77": "^0.23.
|
|
95
|
-
"@novu/sns": "^0.23.
|
|
96
|
-
"@novu/stateless": "^0.23.
|
|
97
|
-
"@novu/telnyx": "^0.23.
|
|
98
|
-
"@novu/termii": "^0.23.
|
|
99
|
-
"@novu/twilio": "^0.23.
|
|
79
|
+
"@novu/discord": "^0.23.1",
|
|
80
|
+
"@novu/emailjs": "^0.23.1",
|
|
81
|
+
"@novu/gupshup": "^0.23.1",
|
|
82
|
+
"@novu/mailgun": "^0.23.1",
|
|
83
|
+
"@novu/mailjet": "^0.23.1",
|
|
84
|
+
"@novu/mandrill": "^0.23.1",
|
|
85
|
+
"@novu/netcore": "^0.23.1",
|
|
86
|
+
"@novu/nexmo": "^0.23.1",
|
|
87
|
+
"@novu/node": "^0.23.1",
|
|
88
|
+
"@novu/nodemailer": "^0.23.1",
|
|
89
|
+
"@novu/plivo": "^0.23.1",
|
|
90
|
+
"@novu/postmark": "^0.23.1",
|
|
91
|
+
"@novu/sendgrid": "^0.23.1",
|
|
92
|
+
"@novu/ses": "^0.23.1",
|
|
93
|
+
"@novu/slack": "^0.23.1",
|
|
94
|
+
"@novu/sms77": "^0.23.1",
|
|
95
|
+
"@novu/sns": "^0.23.1",
|
|
96
|
+
"@novu/stateless": "^0.23.1",
|
|
97
|
+
"@novu/telnyx": "^0.23.1",
|
|
98
|
+
"@novu/termii": "^0.23.1",
|
|
99
|
+
"@novu/twilio": "^0.23.1"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@stacksjs/development": "workspace:*"
|
package/core/orm/package.json
CHANGED
package/core/path/package.json
CHANGED
package/core/push/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/push",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.58",
|
|
5
5
|
"description": "The Stacks Push integration",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"prepublishOnly": "bun --bun run build"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@novu/node": "^0.23.
|
|
50
|
-
"@novu/stateless": "^0.23.
|
|
49
|
+
"@novu/node": "^0.23.1",
|
|
50
|
+
"@novu/stateless": "^0.23.1",
|
|
51
51
|
"@stacksjs/cli": "workspace:*",
|
|
52
52
|
"@stacksjs/config": "workspace:*",
|
|
53
53
|
"@stacksjs/error-handling": "workspace:*"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@novu/node": "^0.23.
|
|
57
|
-
"@novu/stateless": "^0.23.
|
|
56
|
+
"@novu/node": "^0.23.1",
|
|
57
|
+
"@novu/stateless": "^0.23.1",
|
|
58
58
|
"@stacksjs/cli": "workspace:*",
|
|
59
59
|
"@stacksjs/config": "workspace:*",
|
|
60
60
|
"@stacksjs/error-handling": "workspace:*"
|
package/core/queue/dist/index.js
CHANGED
|
@@ -8,7 +8,8 @@ class Job {
|
|
|
8
8
|
rate;
|
|
9
9
|
tries;
|
|
10
10
|
backoff;
|
|
11
|
-
|
|
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/core/queue/package.json
CHANGED
package/core/queue/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
|
}
|