Unverified Commit 93a43137 authored by Lijiaoa's avatar Lijiaoa Committed by GitHub
Browse files

Support show trial command on (remote | reuse) mode (#3020)

parent e54f9dbd
......@@ -11,7 +11,12 @@ export const Command2 = (): any => {
if (clusterMetaData !== undefined) {
for (const item of clusterMetaData) {
if (item.key === 'command') {
trialCommand = item.value;
trialCommand = item.value as string;
}
if (item.key === 'trial_config') {
if (typeof item.value === 'object' && 'command' in item.value) {
trialCommand = item.value.command as string;
}
}
}
}
......
......@@ -184,10 +184,14 @@ interface ExperimentParams {
};
clusterMetaData?: {
key: string;
value: string;
value: string | ClusterItem;
}[];
}
interface ClusterItem {
command?: string;
}
interface ExperimentProfile {
params: ExperimentParams;
id: string;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment