Skip to content
Open
2 changes: 2 additions & 0 deletions .aiox-core/core/orchestration/master-orchestrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,7 @@ class MasterOrchestrator extends EventEmitter {
if (!state.epics) return 0;

const totalEpics = Object.keys(EPIC_CONFIG).filter((num) => !EPIC_CONFIG[num].onDemand).length;
if (totalEpics === 0) return 0;

const completedEpics = Object.values(state.epics).filter(
(epic) => epic.status === EpicStatus.COMPLETED,
Expand Down Expand Up @@ -1411,6 +1412,7 @@ class MasterOrchestrator extends EventEmitter {
*/
getProgressPercentage() {
const totalEpics = Object.keys(EPIC_CONFIG).filter((num) => !EPIC_CONFIG[num].onDemand).length;
if (totalEpics === 0) return 0;

const completedEpics = Object.values(this.executionState.epics).filter(
(epic) => epic.status === EpicStatus.COMPLETED,
Expand Down
Loading
Loading