Skip to content

Commit 8987eb5

Browse files
committed
Add success rate line to orchestrator status table
1 parent e59b62d commit 8987eb5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/scripts/orchestrator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ module.exports = async ({ github, context, core }) => {
124124

125125
const progressPercent = totalTasks > 0 ? Math.round((handledCount / totalTasks) * 100) : 0;
126126
const successPercent = totalTasks > 0 ? Math.round((completedCount / totalTasks) * 100) : 0;
127+
const successRate = handledCount > 0 ? Math.round((completedCount / handledCount) * 100) : 0;
127128

128129
const progressBar = renderBar(progressPercent);
129130
const successBar = renderBar(successPercent);
@@ -149,6 +150,7 @@ module.exports = async ({ github, context, core }) => {
149150
| **Status** | ${state.status} |
150151
| **Progress** | ${progressBar} (${handledCount}/${totalTasks} handled) |
151152
| **Success** | ${successBar} (${completedCount}/${totalTasks} succeeded) |
153+
| **Success Rate** | ${successRate}% (${completedCount}/${handledCount} handled) |
152154
| **Current Task** | ${currentTaskInfo} |
153155
154156
### 📋 Queue List

0 commit comments

Comments
 (0)