task_models
Task models for Fractal tasks.
These models are used in task_list.py
, and they provide a layer that
simplifies writing the task list of a package in a way that is compliant with
fractal-server v2.
CompoundTask
¶
Bases: _BaseTask
A CompoundTask
object must include both executable_init
and
executable
attributes, and it may include the meta_init
and meta
attributes.
Source code in fractal_tasks_core/dev/task_models.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
NonParallelTask
¶
Bases: _BaseTask
A NonParallelTask
object must include the executable
attribute, and it
may include the meta
attribute.
Source code in fractal_tasks_core/dev/task_models.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
|
ParallelTask
¶
Bases: _BaseTask
A ParallelTask
object must include the executable
attribute, and it may
include the meta
attribute.
Source code in fractal_tasks_core/dev/task_models.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
|