@dougbots/avenor-core 0.3.2 → 0.3.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/index.js +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -579,9 +579,11 @@ function sentinelStatusToResult(sentinelStatus) {
|
|
|
579
579
|
}
|
|
580
580
|
function translateStatus(rawPhase, sentinelData) {
|
|
581
581
|
const sentinelStatus = sentinelData?._status;
|
|
582
|
+
if (sentinelStatus && (rawPhase === "running" || rawPhase === "idle")) return sentinelStatusToResult(sentinelStatus);
|
|
582
583
|
switch (rawPhase) {
|
|
583
584
|
case "idle": return sentinelStatus ? sentinelStatusToResult(sentinelStatus) : "running";
|
|
584
585
|
case "running": return "running";
|
|
586
|
+
case "waiting": return "waiting";
|
|
585
587
|
case "ended": return sentinelStatus ? sentinelStatusToResult(sentinelStatus) : "running";
|
|
586
588
|
case "DONE": return "done";
|
|
587
589
|
case "FAILED": return "failed";
|