-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Support show trial command on (remote | reuse) mode #3020
Conversation
@@ -10,7 +10,7 @@ export const Command2 = (): any => { | |||
|
|||
if (clusterMetaData !== undefined) { | |||
for (const item of clusterMetaData) { | |||
if (item.key === 'command') { | |||
if (item.key === 'command' || item.key === 'trial_config') { | |||
trialCommand = item.value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the data format in trial_config is {"command":"python3..", "gpuNum":"",...}, should use item.value.command for trial_config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix
trialCommand = item.value as string; | ||
} | ||
if (item.key === 'trial_config') { | ||
trialCommand = item.value['command']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if 'command' field does not exist in trial_config, will this line cause webui crash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not item.value.command
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had fix this question
src/webui/src/static/interface.ts
Outdated
command?: string; | ||
codeDir?: string; | ||
image?: string; | ||
gpuNum?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be more items trial_config, like 'virtualCluster', 'memoryMB', 'paiStorageConfigName', will this work if more items added in trial_config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test, no problem
remote, reuse, aml:
local: