Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

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

Merged
merged 7 commits into from
Oct 22, 2020

Conversation

Lijiaoa
Copy link
Contributor

@Lijiaoa Lijiaoa commented Oct 22, 2020

remote, reuse, aml:
image

local:
image

@Lijiaoa Lijiaoa changed the title Support show trial command on (remote | reuse) Support show trial command on (remote | reuse) mode Oct 22, 2020
@@ -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;
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will fix

@QuanluZhang QuanluZhang requested a review from ultmaster October 22, 2020 08:19
trialCommand = item.value as string;
}
if (item.key === 'trial_config') {
trialCommand = item.value['command'];
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had fix this question

command?: string;
codeDir?: string;
image?: string;
gpuNum?: number;
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test, no problem

@QuanluZhang QuanluZhang merged commit 93a4313 into microsoft:v1.9 Oct 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants