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

Method make_info

crates/hyperqueue/src/server/worker.rs:83–95  ·  view source on GitHub ↗
(&self, runtime_info: Option<WorkerRuntimeInfo>)

Source from the content-addressed store, hash-verified

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}

Callers 4

handle_worker_stopFunction · 0.80
handle_get_listFunction · 0.80
handle_worker_infoFunction · 0.80

Calls 2

started_atMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected