pub struct QueuedJob {
pub id: u64,
pub repository: String,
pub profile: Option<String>,
pub run_id: u64,
pub run_attempt: u32,
pub workflow: Option<String>,
pub name: String,
pub branch: Option<String>,
pub url: Option<String>,
pub queued_at: u64,
pub waiting: Option<Waiting>,
}Expand description
A queued job runners of this daemon can take, as GitHub listed it at the last poll.
Fields§
§id: u64GitHub’s job ID.
repository: StringThe repository whose runners can take it, owner/name.
profile: Option<String>The profile of its repository’s pool whose labels match it; None when no pool’s do.
run_id: u64The workflow run it belongs to.
run_attempt: u321 for the first attempt of the run, higher for re-runs.
workflow: Option<String>The workflow’s name.
name: StringThe job’s name in the workflow.
branch: Option<String>The branch the run is for.
url: Option<String>The job’s page on GitHub.
queued_at: u64When GitHub queued it, in seconds since the Unix epoch; 0 if GitHub did not say.
waiting: Option<Waiting>Why no runner has it yet, as the last plan saw it. None before the daemon has planned with it, and while
it shuts down.
Implementations§
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
impl Eq for QueuedJob
impl StructuralPartialEq for QueuedJob
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.