Skip to content

Class peagen.errors.NoWorkerAvailableError

peagen.errors.NoWorkerAvailableError

NoWorkerAvailableError(pool, action)

Bases: SchedulerError

Raised when no worker supports the requested action in the pool.

Source code in peagen/errors.py
154
155
156
157
158
def __init__(self, pool: str, action: str) -> None:
    msg = f"No worker available in pool '{pool}' for action '{action}'"
    super().__init__(msg)
    self.pool = pool
    self.action = action

pool instance-attribute

pool = pool

action instance-attribute

action = action