schrodinger.tasks.v2.task module¶
Core task types, status tracking, and preprocessing.
- class schrodinger.tasks.v2.task.Task¶
Bases:
object- input: Any¶
- output: Any¶
- getLaunchDir() Path¶
Return the launch directory, defaulting to cwd if not set.
- setLaunchDir(path: os.PathLike | None)¶
- mainFunction()¶
- exception schrodinger.tasks.v2.task.TaskFailure¶
Bases:
Exception
- class schrodinger.tasks.v2.task.TaskFile¶
Bases:
str
- class schrodinger.tasks.v2.task.TaskFolder¶
Bases:
str
- class schrodinger.tasks.v2.task.Status¶
Bases:
Enum- NOT_STARTED = 0¶
- PREPROCESSED = 1¶
- RUNNING = 2¶
- DONE = 3¶
- FAILED = 4¶
- class schrodinger.tasks.v2.task.FailureSite¶
Bases:
Enum- PREPROCESSING = 1¶
- LAUNCHING = 2¶
- EXECUTION = 3¶
- LOADING = 4¶
- class schrodinger.tasks.v2.task.FailureInfo(exception, traceback, site)¶
Bases:
object- __init__(exception, traceback, site)¶
- matchesException(exception_type: type) bool¶
Return whether the captured exception matches
exception_type.Uses
isinstancewhen the exception object is available (i.e. was picklable). Falls back to name comparison when the exception was dropped during serialization.
- schrodinger.tasks.v2.task.preprocessor(order=0)¶
Mark a task method as a preprocessor with a given execution order.