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

Method started_at

crates/hyperqueue/src/server/worker.rs:49–53  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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 });

Callers 3

process_worker_lostMethod · 0.80
make_infoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected