From 46c731fcf015c9ed91e775bcf9a6f3b4e2594eec Mon Sep 17 00:00:00 2001 From: v-liguo Date: Fri, 10 Jan 2020 17:38:43 +0800 Subject: [PATCH] Support kill a UNKNOWN job --- src/webui/src/components/trial-detail/TableList.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webui/src/components/trial-detail/TableList.tsx b/src/webui/src/components/trial-detail/TableList.tsx index 757da666fa..06d0623397 100644 --- a/src/webui/src/components/trial-detail/TableList.tsx +++ b/src/webui/src/components/trial-detail/TableList.tsx @@ -431,7 +431,8 @@ class TableList extends React.Component { key: 'operation', render: (text: string, record: TableRecord) => { const trialStatus = record.status; - const flag: boolean = (trialStatus === 'RUNNING') ? false : true; + // could kill a job when its status is RUNNING or UNKNOWN + const flag: boolean = (trialStatus === 'RUNNING' || trialStatus === 'UNKNOWN') ? false : true; return ( {/* see intermediate result graph */}