Skip to main content

attempt_inputs

Function attempt_inputs 

Source
pub async fn attempt_inputs(
    db: &Database,
    attempt_id: &str,
) -> Result<Option<Vec<u8>>, DispatchError>
Expand description

The inputs of an open attempt as JSON (what FetchInputs streams when they were too big for AssignTask); None for an unknown or ended attempt. Only reads the database, so it needs none of the master’s state, nor its lock: a busy master doesn’t hold a task’s start up (B11).

§Errors

DispatchError::Db if the database fails.