(
ddb_repo: Data<DDBRepository>,
task_identifier: Path<TaskIdentifier>
)
| 120 | |
| 121 | #[put("/task/{task_global_id}/start")] |
| 122 | pub 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")] |
| 135 | pub async fn pause_task( |
nothing calls this directly
no test coverage detected