@friggframework/core 2.0.0--canary.545.7b93757.0 → 2.0.0--canary.545.a2a8f01.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.
|
@@ -140,6 +140,13 @@ class NetlifySchedulerAdapter extends SchedulerServiceInterface {
|
|
|
140
140
|
|
|
141
141
|
for (const schedule of dueSchedules) {
|
|
142
142
|
try {
|
|
143
|
+
// Mark as PROCESSING before dispatch so the next cron tick
|
|
144
|
+
// won't re-pick this schedule (findDue only returns PENDING).
|
|
145
|
+
await this.repository.save({
|
|
146
|
+
...schedule,
|
|
147
|
+
state: 'PROCESSING',
|
|
148
|
+
});
|
|
149
|
+
|
|
143
150
|
if (this.queueProvider) {
|
|
144
151
|
await this.queueProvider.send(
|
|
145
152
|
schedule.payload,
|
|
@@ -159,6 +166,11 @@ class NetlifySchedulerAdapter extends SchedulerServiceInterface {
|
|
|
159
166
|
`[NetlifyScheduler] Error processing schedule ${schedule.scheduleName}:`,
|
|
160
167
|
error
|
|
161
168
|
);
|
|
169
|
+
// Mark as FAILED so it won't be re-dispatched automatically.
|
|
170
|
+
// Operators can inspect FAILED schedules and retry manually.
|
|
171
|
+
await this.repository
|
|
172
|
+
.save({ ...schedule, state: 'FAILED' })
|
|
173
|
+
.catch(() => {});
|
|
162
174
|
errors++;
|
|
163
175
|
}
|
|
164
176
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/core",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.545.
|
|
4
|
+
"version": "2.0.0--canary.545.a2a8f01.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.588.0",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@friggframework/eslint-config": "2.0.0--canary.545.
|
|
43
|
-
"@friggframework/prettier-config": "2.0.0--canary.545.
|
|
44
|
-
"@friggframework/test": "2.0.0--canary.545.
|
|
42
|
+
"@friggframework/eslint-config": "2.0.0--canary.545.a2a8f01.0",
|
|
43
|
+
"@friggframework/prettier-config": "2.0.0--canary.545.a2a8f01.0",
|
|
44
|
+
"@friggframework/test": "2.0.0--canary.545.a2a8f01.0",
|
|
45
45
|
"@prisma/client": "^6.17.0",
|
|
46
46
|
"@types/lodash": "4.17.15",
|
|
47
47
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "a2a8f01af5f6aa4bd61fd3a982733ae295459e2d"
|
|
86
86
|
}
|