Unverified Commit 726a46de authored by J-shang's avatar J-shang Committed by GitHub
Browse files

fix bug (#3977)

parent a7846135
...@@ -709,7 +709,10 @@ class TrialDispatcher implements TrainingService { ...@@ -709,7 +709,10 @@ class TrialDispatcher implements TrainingService {
throw new Error(`${environment.id} environmentService not initialized!`); throw new Error(`${environment.id} environmentService not initialized!`);
} }
trial.message = `Platform: ${environment.environmentService.getName}, environment: ${environment.id}`; trial.message = `Platform: ${environment.environmentService.getName}, environment: ${environment.id}`;
if (environment.environmentService.hasStorageService) { if (this.useSharedStorage) {
const storageService = component.get<SharedStorageService>(SharedStorageService).storageService;
trial.workingDirectory = storageService.joinPath('trials', trial.id);
} else if (environment.environmentService.hasStorageService) {
const storageService = component.get<StorageService>(StorageService); const storageService = component.get<StorageService>(StorageService);
trial.workingDirectory = storageService.joinPath('trials', trial.id); trial.workingDirectory = storageService.joinPath('trials', trial.id);
} }
......
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