@cloud-cli/on 1.34.1 → 1.34.3
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 +14 -4
- package/dist/worker.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/on.js
CHANGED
|
@@ -10917,7 +10917,7 @@ async function _l(e) {
|
|
|
10917
10917
|
})), b = jl(n, "running", p, f, _.env, y, s);
|
|
10918
10918
|
await o.saveReport(n.id, b), hl(r, n.id);
|
|
10919
10919
|
try {
|
|
10920
|
-
Object.assign(_.env, await xl(l.env, _)), Ol(l.secretFiles, a.getAll(), g), v = l.cache ? String(await Zn.evaluateValue(l.cache.key, _)) : "", v && l.cache && await Dl(o, "cache", `${n.workflow_id}:${v}`, l.cache.paths, g),
|
|
10920
|
+
Object.assign(_.env, await xl(l.env, _)), Ol(l.secretFiles, a.getAll(), g), v = l.cache ? String(await Zn.evaluateValue(l.cache.key, _)) : "", v && l.cache && await Dl(o, "cache", `${n.workflow_id}:${v}`, l.cache.paths, g), await o.saveReport(n.id, b);
|
|
10921
10921
|
} catch (e) {
|
|
10922
10922
|
b.status = "failed", b.finishedAt = (/* @__PURE__ */ new Date()).toISOString(), b.durationMs = Date.now() - p;
|
|
10923
10923
|
let r = {
|
|
@@ -11056,12 +11056,22 @@ async function yl(e) {
|
|
|
11056
11056
|
...e,
|
|
11057
11057
|
stepContext: i
|
|
11058
11058
|
});
|
|
11059
|
-
} catch (
|
|
11060
|
-
|
|
11059
|
+
} catch (n) {
|
|
11060
|
+
let i = n?.message || String(n);
|
|
11061
|
+
return await e.queue.saveStepLog(e.jobId, t.id, `[STEP ERROR]:\n${i}`), Jn(`⏩ Failed to run step ${t.id}`, r, n), {
|
|
11061
11062
|
failed: !0,
|
|
11062
11063
|
cancelled: !1,
|
|
11063
11064
|
skipped: !1,
|
|
11064
|
-
report:
|
|
11065
|
+
report: {
|
|
11066
|
+
id: t.id,
|
|
11067
|
+
name: t.name,
|
|
11068
|
+
status: "failed",
|
|
11069
|
+
durationMs: 0,
|
|
11070
|
+
exitCode: 1,
|
|
11071
|
+
error: i,
|
|
11072
|
+
outputs: {},
|
|
11073
|
+
logContent: ""
|
|
11074
|
+
}
|
|
11065
11075
|
};
|
|
11066
11076
|
}
|
|
11067
11077
|
}
|
package/dist/worker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAGL,YAAY,EAOZ,WAAW,EAKZ,MAAM,YAAY,CAAC;AAQpB,eAAO,MAAM,aAAa;;CAEzB,CAAC;AAMF;;GAEG;AACH,wBAAsB,qBAAqB,kBAK1C;AAED,wBAAgB,qBAAqB,SAIpC;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,mBAK1G;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,YAAY,iBA0ErB;AAmGD;;GAEG;AACH,wBAAsB,UAAU,CAAC,CAAC,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAGL,YAAY,EAOZ,WAAW,EAKZ,MAAM,YAAY,CAAC;AAQpB,eAAO,MAAM,aAAa;;CAEzB,CAAC;AAMF;;GAEG;AACH,wBAAsB,qBAAqB,k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