@iterativeflow/mysql 2.2.0 → 2.3.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.
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -555,7 +555,8 @@ const createMysqlStore = (sql, t, id) => {
|
|
|
555
555
|
deleteRunsOlderThan: (before, limit) => deleteRuns({ before }, limit),
|
|
556
556
|
retryRun(runId) {
|
|
557
557
|
return sql.tx(async (tx) => {
|
|
558
|
-
if ((await tx.exec(`UPDATE ${t.run} SET status = 'pending', error = NULL
|
|
558
|
+
if ((await tx.exec(`UPDATE ${t.run} SET status = 'pending', error = NULL, attempts = 0
|
|
559
|
+
WHERE id = ? AND status = 'failed'`, [runId])).affectedRows !== 1) return { retried: false };
|
|
559
560
|
await enqueueStmt(tx, t, runId);
|
|
560
561
|
return { retried: true };
|
|
561
562
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iterativeflow/mysql",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@iterativeflow/core": "2.
|
|
28
|
+
"@iterativeflow/core": "2.3.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"mysql2": ">=3.0.0"
|