Skip to main content

account_for_job

Function account_for_job 

Source
pub(crate) fn account_for_job(
    state: &AppState,
    leader_uid: &str,
    requested: Option<&str>,
) -> Option<(String, String)>
Expand description

The account and provider the next worker of a spawn job led by leader_uid would run on (choose_account), without opening it: what the spending caps weigh before the run starts (jobs spec §5.3). None when the leader isn’t running or no account can take a worker.