windmill-cli 1.683.1 → 1.684.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/esm/main.js +22 -5
- package/package.json +1 -1
package/esm/main.js
CHANGED
|
@@ -11812,7 +11812,7 @@ var init_OpenAPI = __esm(() => {
|
|
|
11812
11812
|
PASSWORD: undefined,
|
|
11813
11813
|
TOKEN: getEnv2("WM_TOKEN"),
|
|
11814
11814
|
USERNAME: undefined,
|
|
11815
|
-
VERSION: "1.
|
|
11815
|
+
VERSION: "1.684.0",
|
|
11816
11816
|
WITH_CREDENTIALS: true,
|
|
11817
11817
|
interceptors: {
|
|
11818
11818
|
request: new Interceptors,
|
|
@@ -84383,15 +84383,32 @@ Steps:`));
|
|
|
84383
84383
|
const flowJobsDuration = mod.flow_jobs_duration;
|
|
84384
84384
|
const flowJobs = mod.flow_jobs;
|
|
84385
84385
|
if (flowJobs && flowJobs.length > 0) {
|
|
84386
|
-
const
|
|
84386
|
+
const startedAtArr = flowJobsDuration?.started_at ?? [];
|
|
84387
|
+
const durationMsArr = flowJobsDuration?.duration_ms ?? [];
|
|
84388
|
+
let totalMs;
|
|
84389
|
+
{
|
|
84390
|
+
let minStart = Infinity;
|
|
84391
|
+
let maxEnd = -Infinity;
|
|
84392
|
+
for (let i = 0;i < startedAtArr.length; i++) {
|
|
84393
|
+
const sa = startedAtArr[i];
|
|
84394
|
+
const dm = durationMsArr[i];
|
|
84395
|
+
if (sa != null && dm != null) {
|
|
84396
|
+
const startMs = new Date(sa).getTime();
|
|
84397
|
+
minStart = Math.min(minStart, startMs);
|
|
84398
|
+
maxEnd = Math.max(maxEnd, startMs + dm);
|
|
84399
|
+
}
|
|
84400
|
+
}
|
|
84401
|
+
if (minStart < Infinity && maxEnd > -Infinity) {
|
|
84402
|
+
totalMs = maxEnd - minStart;
|
|
84403
|
+
}
|
|
84404
|
+
}
|
|
84387
84405
|
const durationStr = totalMs != null ? colors.dim(formatDuration(totalMs)) : "";
|
|
84388
84406
|
console.log(` ${icon} ${label} ${durationStr}`);
|
|
84389
84407
|
const flowJobsSuccess = mod.flow_jobs_success ?? [];
|
|
84390
|
-
const durationMs = flowJobsDuration?.duration_ms ?? [];
|
|
84391
84408
|
for (let iter = 0;iter < flowJobs.length; iter++) {
|
|
84392
84409
|
const iterSuccess = flowJobsSuccess[iter];
|
|
84393
84410
|
const iterIcon = iterSuccess === true ? colors.green("✓") : iterSuccess === false ? colors.red("✗") : colors.dim("·");
|
|
84394
|
-
const iterDur =
|
|
84411
|
+
const iterDur = durationMsArr[iter] != null ? colors.dim(formatDuration(durationMsArr[iter])) : "";
|
|
84395
84412
|
const iterJobId = colors.dim(flowJobs[iter]);
|
|
84396
84413
|
console.log(` ${iterIcon} iteration ${iter} ${iterJobId} ${iterDur}`);
|
|
84397
84414
|
}
|
|
@@ -85169,7 +85186,7 @@ var config_default = command35;
|
|
|
85169
85186
|
|
|
85170
85187
|
// src/main.ts
|
|
85171
85188
|
await init_context();
|
|
85172
|
-
var VERSION = "1.
|
|
85189
|
+
var VERSION = "1.684.0";
|
|
85173
85190
|
async function checkVersionSafe(cmd) {
|
|
85174
85191
|
const mainCommand = cmd.getMainCommand();
|
|
85175
85192
|
const upgradeCommand = mainCommand.getCommand("upgrade");
|