Unverified Commit fa5127b3 authored by Weidan Kong's avatar Weidan Kong Committed by GitHub
Browse files

Bug: reduce liveEnvironmentsCount after environment is stopped (#4593)

parent 268215ad
...@@ -507,6 +507,7 @@ class TrialDispatcher implements TrainingService { ...@@ -507,6 +507,7 @@ class TrialDispatcher implements TrainingService {
throw new Error(`${environment.id} does not has environment service!`); throw new Error(`${environment.id} does not has environment service!`);
} }
await environment.environmentService.stopEnvironment(environment); await environment.environmentService.stopEnvironment(environment);
liveEnvironmentsCount--;
continue; continue;
} }
......
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