pub struct JobActions { /* private fields */ }Expand description
Sends the owner’s job actions. Cloned into each request; every clone shares the confirmations and flights.
Implementations§
Source§impl JobActions
impl JobActions
Sourcepub async fn rerun_faults(self)
pub async fn rerun_faults(self)
Follows the history’s runner faults and re-runs their runs, until a stop. Spawned once by the engine.
Source§impl JobActions
impl JobActions
Sourcepub fn new(
github: Arc<dyn ActionsGithub>,
store: Store,
control: Arc<Control>,
limits: Limits,
) -> JobActions
pub fn new( github: Arc<dyn ActionsGithub>, store: Store, control: Arc<Control>, limits: Limits, ) -> JobActions
Actions sent through github, for the jobs store has, under the config control holds, within limits
(LIMITS but in tests).
Sourcepub async fn ask(
&self,
job: u64,
action: JobAction,
confirm: Option<&str>,
) -> Result<Asked, ActionError>
pub async fn ask( &self, job: u64, action: JobAction, confirm: Option<&str>, ) -> Result<Asked, ActionError>
Asks action of job job. Unless confirm is a confirmation this daemon issued with a preview of this very
action and job, still current, the answer is a new preview and nothing is sent. A confirmed one is sent once,
or joins the same one in flight for the run; another action in flight for the run refuses it.
Sourcepub fn rerun_refused(&self, repository: &str) -> Option<RerunRefused>
pub fn rerun_refused(&self, repository: &str) -> Option<RerunRefused>
Why repository’s runner faults are not re-run, if GitHub refused one under the config of this moment
(ADR 0153): what its status shows.