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

Function fail_task

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

Source from the content-addressed store, hash-verified

146
147#[put("/task/{task_global_id}/fail")]
148pub async fn fail_task(
149 ddb_repo: Data<DDBRepository>,
150 task_identifier: Path<TaskIdentifier>
151) -> Result<Json<TaskIdentifier>, TaskError> {
152 state_transition(
153 ddb_repo,
154 task_identifier.into_inner().task_global_id,
155 TaskState::Failed,
156 None
157 ).await
158}
159
160#[put("/task/{task_global_id}/complete")]
161pub async fn complete_task(

Callers

nothing calls this directly

Calls 1

state_transitionFunction · 0.70

Tested by

no test coverage detected