Skip to main content

provision_task_workspace

Function provision_task_workspace 

Source
pub async fn provision_task_workspace<S>(
    backend: &dyn ExecutionBackend,
    state: &S,
    task_id: &str,
    attempt: &TaskAttempt,
    project_scope: Option<&str>,
) -> Result<TaskWorkspace>
Expand description

The workspace for attempt of task task_id, provisioned under the task’s workspace policy (reused while the same attempt’s is not failed).