(&mut self, worker_id: WorkerId)
| 126 | } |
| 127 | |
| 128 | pub fn increase_crash_counters(&mut self, worker_id: WorkerId) { |
| 129 | for task in self.tasks.values_mut() { |
| 130 | match &task.state { |
| 131 | JobTaskState::Running { started_data } |
| 132 | if started_data.worker_ids.contains(&worker_id) => |
| 133 | { |
| 134 | task.crash_counter += 1; |
| 135 | } |
| 136 | _ => {} |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | #[derive(Default)] |
no test coverage detected