(
ddb_repo: Data<DDBRepository>,
task_identifier: Path<TaskIdentifier>
)
| 146 | |
| 147 | #[put("/task/{task_global_id}/fail")] |
| 148 | pub 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")] |
| 161 | pub async fn complete_task( |
nothing calls this directly
no test coverage detected