(&self, runtime_info: Option<WorkerRuntimeInfo>)
| 81 | } |
| 82 | |
| 83 | pub fn make_info(&self, runtime_info: Option<WorkerRuntimeInfo>) -> WorkerInfo { |
| 84 | WorkerInfo { |
| 85 | runtime_info, |
| 86 | id: self.worker_id, |
| 87 | configuration: self.configuration.clone(), |
| 88 | started: self.started_at(), |
| 89 | ended: match &self.state { |
| 90 | WorkerState::Online(_) => None, |
| 91 | Offline { exit_info, .. } => Some(exit_info.clone()), |
| 92 | }, |
| 93 | last_task_started: self.last_task_started.clone(), |
| 94 | } |
| 95 | } |
| 96 | } |
no test coverage detected