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 (24 lines) | stat: -rw-r--r-- 541 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
from typing import Optional

from parsl.app.errors import AppException
from parsl.errors import ParslError


class WorkQueueTaskFailure(AppException):
    """A failure executing a task in workqueue

    Contains:
    reason(string)
    status(optional exception)
    """

    def __init__(self, reason: str, status: Optional[Exception]):
        self.reason = reason
        self.status = status


class WorkQueueFailure(ParslError):
    """A failure in the work queue executor that prevented the task to be
    executed.""
    """
    pass