Skip to content

Commit

Permalink
Index ExecutionRequestResults status field (datahub-project#10811)
Browse files Browse the repository at this point in the history
  • Loading branch information
noggi authored and aviv-julienjehannet committed Jul 25, 2024
1 parent 24f79ec commit f0a2f73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions datahub-web-react/src/app/ingest/source/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const WARNING = 'WARNING';
export const FAILURE = 'FAILURE';
export const CONNECTION_FAILURE = 'CONNECTION_FAILURE';
export const CANCELLED = 'CANCELLED';
export const ABORTED = 'ABORTED';
export const UP_FOR_RETRY = 'UP_FOR_RETRY';
export const ROLLING_BACK = 'ROLLING_BACK';
export const ROLLED_BACK = 'ROLLED_BACK';
Expand All @@ -68,6 +69,7 @@ export const getExecutionRequestStatusIcon = (status: string) => {
(status === ROLLED_BACK && WarningOutlined) ||
(status === ROLLING_BACK && LoadingOutlined) ||
(status === ROLLBACK_FAILED && CloseCircleOutlined) ||
(status === ABORTED && CloseCircleOutlined) ||
ClockCircleOutlined
);
};
Expand All @@ -83,6 +85,7 @@ export const getExecutionRequestStatusDisplayText = (status: string) => {
(status === ROLLED_BACK && 'Rolled Back') ||
(status === ROLLING_BACK && 'Rolling Back') ||
(status === ROLLBACK_FAILED && 'Rollback Failed') ||
(status === ABORTED && 'Aborted') ||
status
);
};
Expand All @@ -105,6 +108,8 @@ export const getExecutionRequestSummaryText = (status: string) => {
return 'Ingestion is in the process of rolling back.';
case ROLLBACK_FAILED:
return 'Ingestion rollback failed.';
case ABORTED:
return 'Ingestion job got aborted due to worker restart.';
default:
return 'Ingestion status not recognized.';
}
Expand All @@ -121,6 +126,7 @@ export const getExecutionRequestStatusDisplayColor = (status: string) => {
(status === ROLLED_BACK && 'orange') ||
(status === ROLLING_BACK && 'orange') ||
(status === ROLLBACK_FAILED && 'red') ||
(status === ABORTED && 'red') ||
ANTD_GRAY[7]
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ record ExecutionRequestResult {
/**
* The status of the execution request
*/
@Searchable = {
"fieldType": "KEYWORD",
"fieldName": "executionResultStatus"
}
status: string

/**
Expand All @@ -36,4 +40,4 @@ record ExecutionRequestResult {
* Duration in milliseconds
*/
durationMs: optional long
}
}

0 comments on commit f0a2f73

Please sign in to comment.