MCPcopy Create free account
hub / github.com/closeio/tasktiger / cancel

Method cancel

tasktiger/task.py:613–620  ·  view source on GitHub ↗

Cancels a task that is queued in the SCHEDULED queue. Raises TaskNotFound if the task could not be found in the SCHEDULED queue.

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 3

test_delay_scheduledMethod · 0.95

Calls 1

_moveMethod · 0.95

Tested by 3

test_delay_scheduledMethod · 0.76