We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f89eeca commit cb357fbCopy full SHA for cb357fb
1 file changed
session_manager/src/scheduler/plugins/gang.rs
@@ -154,6 +154,7 @@ impl Plugin for GangPlugin {
154
fn on_session_bind(&mut self, ssn: SessionInfoPtr) {
155
if let Some(state) = self.ssn_state.get_mut(&ssn.id) {
156
state.bound += 1;
157
+ state.incomplete_tasks = state.incomplete_tasks.saturating_sub(1);
158
}
159
160
@@ -166,6 +167,7 @@ impl Plugin for GangPlugin {
166
167
fn on_session_unbind(&mut self, ssn: SessionInfoPtr) {
168
169
state.bound = state.bound.saturating_sub(1);
170
+ state.incomplete_tasks = state.incomplete_tasks.saturating_add(1);
171
172
173
0 commit comments