Update the status of a step by ID
(&mut self, step_id: &str, status: TaskStatus)
| 263 | |
| 264 | /// Update the status of a step by ID |
| 265 | pub fn mark_status(&mut self, step_id: &str, status: TaskStatus) { |
| 266 | if let Some(step) = self.steps.iter_mut().find(|s| s.id == step_id) { |
| 267 | step.status = status; |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | /// Count remaining Pending steps |
| 272 | pub fn pending_count(&self) -> usize { |
no outgoing calls