Retries a task that's in the error queue. Raises TaskNotFound if the task could not be found in the ERROR queue.
(self)
| 602 | return int(executions_count or 0) |
| 603 | |
| 604 | def retry(self) -> None: |
| 605 | """ |
| 606 | Retries a task that's in the error queue. |
| 607 | |
| 608 | Raises TaskNotFound if the task could not be found in the ERROR |
| 609 | queue. |
| 610 | """ |
| 611 | self._move(from_state=ERROR, to_state=QUEUED) |
| 612 | |
| 613 | def cancel(self) -> None: |
| 614 | """ |