File: errors.py

package info (click to toggle)
python-parsl 2025.01.13%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,072 kB
  • sloc: python: 23,817; makefile: 349; sh: 276; ansic: 45
file content (29 lines) | stat: -rw-r--r-- 652 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from parsl.app.errors import AppException
from parsl.errors import ParslError


class TaskVineTaskFailure(AppException):
    """A failure executing a task in TaskVine

    Contains:
    reason(string)
    status(int)
    """

    def __init__(self, reason: str, status: int):
        self.reason = reason
        self.status = status


class TaskVineManagerFailure(ParslError):
    """A failure in the taskvine executor that prevented the task to be
    executed.
    """
    pass


class TaskVineFactoryFailure(ParslError):
    """A failure in the TaskVine factory that prevents the factory from
    supplying workers to the manager.
    """
    pass