Skip to content

Exceptions

Process exceptions.

ProcessNotFoundError

Bases: DvcTaskError

Process does not exist.

Source code in dvc_task/proc/exceptions.py
13
14
15
16
17
class ProcessNotFoundError(DvcTaskError):
    """Process does not exist."""

    def __init__(self, name):
        super().__init__(f"Managed process '{name}' does not exist.")

ProcessNotTerminatedError

Bases: DvcTaskError

Process is still running.

Source code in dvc_task/proc/exceptions.py
 6
 7
 8
 9
10
class ProcessNotTerminatedError(DvcTaskError):
    """Process is still running."""

    def __init__(self, name):
        super().__init__(f"Managed process '{name}' has not been terminated.")

TimeoutExpired

Bases: DvcTaskError

Process timeout expired.

Source code in dvc_task/proc/exceptions.py
20
21
22
23
24
25
26
class TimeoutExpired(DvcTaskError):  # noqa: N818
    """Process timeout expired."""

    def __init__(self, cmd, timeout):
        super().__init__(f"'{cmd}' did not complete before timeout '{timeout}'")
        self.cmd = cmd
        self.timeout = timeout

UnsupportedSignalError

Bases: DvcTaskError

Unsupported process signal.

Source code in dvc_task/proc/exceptions.py
29
30
31
32
33
class UnsupportedSignalError(DvcTaskError):
    """Unsupported process signal."""

    def __init__(self, sig):
        super().__init__(f"Unsupported signal: {sig}")