MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / increase_crash_counters

Method increase_crash_counters

crates/hyperqueue/src/server/restore.rs:128–139  ·  view source on GitHub ↗
(&mut self, worker_id: WorkerId)

Source from the content-addressed store, hash-verified

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)]

Callers 1

load_event_fileMethod · 0.80

Calls 2

values_mutMethod · 0.80
containsMethod · 0.80

Tested by

no test coverage detected