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

Class Job

crates/hyperqueue/src/server/job.rs:142–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142pub struct Job {
143 pub job_id: JobId,
144 pub counters: JobTaskCounters,
145 pub tasks: Map<JobTaskId, JobTaskInfo>,
146
147 pub job_desc: JobDescription,
148 pub submit_descs: SmallVec<[SubmittedJobDescription; 1]>,
149
150 // If true, new tasks may be submitted into this job
151 // If true and all tasks in the job are terminated then the job
152 // is in state OPEN not FINISHED.
153 pub is_open: bool,
154 pub cancel_reason: Option<String>,
155
156 pub submission_date: DateTime<Utc>,
157 pub completion_date: Option<DateTime<Utc>>,
158}
159
160impl Job {
161 pub fn new(job_id: JobId, job_desc: JobDescription, is_open: bool) -> Self {

Callers 11

test_long_chain_of_depsFunction · 0.90
test_function_nameFunction · 0.90
test_wait_for_jobFunction · 0.90
test_visualizationFunction · 0.90
prepare_job_clientFunction · 0.90
test_cluster_add_workerFunction · 0.90
executeMethod · 0.90

Calls

no outgoing calls

Tested by 9

test_long_chain_of_depsFunction · 0.72
test_function_nameFunction · 0.72
test_wait_for_jobFunction · 0.72
test_visualizationFunction · 0.72
test_cluster_add_workerFunction · 0.72