pub struct QueuedJob {
pub job_id: String,
pub workflow_id: String,
pub command: String,
pub required_labels: Vec<String>,
pub retry_policy: RetryPolicy,
pub attempt: u32,
pub upstream_outputs: HashMap<String, HashMap<String, String>>,
pub enqueued_at_ms: u64,
pub delayed_until_ms: u64,
}Expand description
A job sitting in the queue, ready to be claimed by a worker.
Fields§
§job_id: String§workflow_id: String§command: String§required_labels: Vec<String>§retry_policy: RetryPolicy§attempt: u32§upstream_outputs: HashMap<String, HashMap<String, String>>Outputs from upstream jobs, keyed by job_id then output key.
enqueued_at_ms: u64§delayed_until_ms: u64Epoch milliseconds before which this job should not be claimed (backoff delay).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueuedJob
impl<'de> Deserialize<'de> for QueuedJob
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QueuedJob
impl RefUnwindSafe for QueuedJob
impl Send for QueuedJob
impl Sync for QueuedJob
impl Unpin for QueuedJob
impl UnsafeUnpin for QueuedJob
impl UnwindSafe for QueuedJob
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more