Add job status update in service layer
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ pub struct Job {
|
||||
status: JobStatus,
|
||||
}
|
||||
|
||||
#[derive(Clone, Serialize, Deserialize)]
|
||||
#[derive(Clone, Serialize, Deserialize, PartialEq, Eq, Debug)]
|
||||
pub enum JobStatus {
|
||||
Dispatched,
|
||||
WaitingForPrerequisites,
|
||||
@@ -56,4 +56,7 @@ impl Job {
|
||||
pub fn script_type(&self) -> ScriptType {
|
||||
self.script_type.clone()
|
||||
}
|
||||
pub fn status(&self) -> JobStatus {
|
||||
self.status.clone()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user