MCPcopy Create free account
hub / github.com/MoonKraken/youtube / start_task

Function start_task

FullStackRust/backend/src/api/task.rs:122–132  ·  view source on GitHub ↗
(
    ddb_repo: Data<DDBRepository>, 
    task_identifier: Path<TaskIdentifier>
)

Source from the content-addressed store, hash-verified

120
121#[put("/task/{task_global_id}/start")]
122pub async fn start_task(
123 ddb_repo: Data<DDBRepository>,
124 task_identifier: Path<TaskIdentifier>
125) -> Result<Json<TaskIdentifier>, TaskError> {
126 state_transition(
127 ddb_repo,
128 task_identifier.into_inner().task_global_id,
129 TaskState::InProgress,
130 None
131 ).await
132}
133
134#[put("/task/{task_global_id}/pause")]
135pub async fn pause_task(

Callers

nothing calls this directly

Calls 1

state_transitionFunction · 0.70

Tested by

no test coverage detected