Source code for pyncette.errors
from __future__ import annotations
from typing import TYPE_CHECKING
[docs]class LeaseLostException(PyncetteException):
"""Signals that the lease on the task was lost"""
task: Task
def __init__(self, task: Task):
super().__init__(f"Lease on the task {task.canonical_name} was lost.")
self.task = task
if TYPE_CHECKING:
from pyncette.task import Task