Skip to content

Commit

Permalink
[Web Portal] Seperate 'waiting' and 'running' states on task role's s…
Browse files Browse the repository at this point in the history
…tatistics (microsoft#3727)
  • Loading branch information
sunqinzheng authored Oct 15, 2019
1 parent 5512170 commit 41c2e17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/webportal/src/app/job/job-view/fabric/job-detail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class JobDetail extends React.Component {
: taskConfig.instances;
dummyTaskInfo = {
taskStatuses: Array.from({ length: instances }, (v, idx) => ({
taskState: 'Waiting',
taskState: 'WAITING',
})),
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default class TaskRole extends React.Component {
const { taskInfo } = this.props;
const count = {
running: 0,
waiting: 0,
succeeded: 0,
failed: 0,
unknown: 0,
Expand All @@ -63,9 +64,11 @@ export default class TaskRole extends React.Component {
for (const item of taskInfo.taskStatuses) {
switch (item.taskState) {
case 'RUNNING':
case 'WAITING':
count.running += 1;
break;
case 'WAITING':
count.waiting += 1;
break;
case 'SUCCEEDED':
count.succeeded += 1;
break;
Expand Down

0 comments on commit 41c2e17

Please sign in to comment.