Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: fix incorrect task finish time #9557

Merged
merged 1 commit into from Oct 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -104,7 +104,7 @@ const TaskDetail = (props) => {
<strong>Start Time:</strong> {get(taskDebugData, 'startTime', '')}
</Grid>
<Grid item xs={12}>
<strong>Finish Time:</strong> {get(taskDebugData, 'subtaskInfos.0.finishTime', '')}
<strong>Finish Time:</strong> {get(taskDebugData, 'finishTime', '')}
</Grid>
<Grid item xs={12}>
<strong>Number of Sub Tasks:</strong> {get(taskDebugData, 'subtaskCount.total', '')}
Expand Down
Expand Up @@ -809,12 +809,11 @@ const getTasksList = async (tableName, taskType) => {
const promiseArr = [];
const fetchInfo = async (taskID, status) => {
const debugData = await getTaskDebugData(taskID);
const startTime = moment(get(debugData, 'data.subtaskInfos.0.startTime'), 'YYYY-MM-DD hh:mm:ss');
finalResponse.records.push([
taskID,
status,
get(debugData, 'data.subtaskInfos.0.startTime'),
get(debugData, 'data.subtaskInfos.0.finishTime', ''),
get(debugData, 'data.startTime', ''),
get(debugData, 'data.finishTime', ''),
get(debugData, 'data.subtaskCount.total', 0)
]);
};
Expand Down