@cloud-cli/on 1.7.7 → 1.7.8
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/on.js +1 -1
- package/package.json +1 -1
package/dist/on.js
CHANGED
|
@@ -4470,7 +4470,7 @@ var pi = class {
|
|
|
4470
4470
|
}
|
|
4471
4471
|
async restartJob(e) {
|
|
4472
4472
|
let t = await this.getJob(e);
|
|
4473
|
-
if (t) return t.status === "running" && await S.run("UPDATE jobs SET status = 'cancelled', finished_at = CURRENT_TIMESTAMP WHERE id = ?;", [e]), (await S.get("INSERT INTO jobs (parentId, workflow_id, concurrency_key, payload)
|
|
4473
|
+
if (t) return t.status === "running" && await S.run("UPDATE jobs SET status = 'cancelled', finished_at = CURRENT_TIMESTAMP WHERE id = ?;", [e]), (await S.get("INSERT INTO jobs (parentId, workflow_id, concurrency_key, payload) SELECT id, workflow_id, concurrency_key, payload FROM jobs WHERE id = ? RETURNING *", [e])).id;
|
|
4474
4474
|
}
|
|
4475
4475
|
async isCancelled(e) {
|
|
4476
4476
|
return (await S.get("SELECT status FROM jobs WHERE id = ?;", [+e]))?.status === "cancelled";
|