Skip to main content

may_act_on

Function may_act_on 

Source
fn may_act_on(state: &AppState, caller: Option<&Caller>, job: &CronJob) -> bool
Expand description

Whether caller may act on job (Run now): the operator (the app’s own client, which carries no agent token) or the agent that created or owns it (jobs spec §7). By UID when the job recorded one, else by the creator’s name against the caller’s agent slug.