Cancels a task that is queued in the SCHEDULED queue. Raises TaskNotFound if the task could not be found in the SCHEDULED queue.
(self)
| 611 | self._move(from_state=ERROR, to_state=QUEUED) |
| 612 | |
| 613 | def cancel(self) -> None: |
| 614 | """ |
| 615 | Cancels a task that is queued in the SCHEDULED queue. |
| 616 | |
| 617 | Raises TaskNotFound if the task could not be found in the SCHEDULED |
| 618 | queue. |
| 619 | """ |
| 620 | self._move(from_state=SCHEDULED) |
| 621 | |
| 622 | def delete(self) -> None: |
| 623 | """ |