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
|