Unverified Commit 9a3c61e8 authored by SparkSnail's avatar SparkSnail Committed by GitHub
Browse files

Fix paiToken update logic (#976)

parent 44f54866
......@@ -529,7 +529,15 @@ class PAITrainingService implements TrainingService {
private async statusCheckingLoop(): Promise<void> {
while (!this.stopping) {
await this.updatePaiToken();
try{
await this.updatePaiToken();
}catch(error){
this.log.error(`${error}`);
//only throw error when initlize paiToken first time
if(!this.paiToken) {
throw new Error(error);
}
}
await this.paiJobCollector.retrieveTrialStatus(this.paiToken, this.paiClusterConfig);
const restServer: PAIJobRestServer = component.get(PAIJobRestServer);
if (restServer.getErrorMessage) {
......
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