Пример #1
0
 def check_if_assignation_cancelled(self, task: Task):
     if task.cancelled():
         console.log(
             f"[yellow] Assignation {task} Cancelled and is now Done")
     elif task.exception():
         console.log(
             f"[red] Assignation {task} Failed with {str(task.exception())}"
         )
     elif task.done():
         console.log(
             f"[green] Assignation {task} Succeeded and is now Done")