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

Method add_job

crates/hyperqueue/src/server/state.rs:55–58  ·  view source on GitHub ↗
(&mut self, job: Job)

Source from the content-addressed store, hash-verified

53 }
54
55 pub fn add_job(&mut self, job: Job) {
56 let job_id = job.job_id;
57 assert!(self.jobs.insert(job_id, job).is_none());
58 }
59
60 /// Completely forgets this job, in order to reduce memory usage.
61 pub(crate) fn forget_job(&mut self, job_id: JobId) -> Option<Job> {

Callers 2

handle_submitFunction · 0.45
handle_open_jobFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected