(&self)
| 47 | } |
| 48 | |
| 49 | pub fn started_at(&self) -> DateTime<Utc> { |
| 50 | match &self.state { |
| 51 | WorkerState::Online(connected) | Offline { connected, .. } => connected.started_at, |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | pub fn update_task_started(&mut self, task_id: TaskId, now: DateTime<Utc>) { |
| 56 | self.last_task_started = Some(TaskTimestamp { task_id, time: now }); |
no outgoing calls
no test coverage detected