Task wrapper
Wrapper to run a Fractal task.
| CLASS | DESCRIPTION |
|---|---|
TaskParameterEncoder |
Custom JSONEncoder that transforms Path objects to strings. |
| FUNCTION | DESCRIPTION |
|---|---|
run_fractal_task |
Implement standard task interface and call task_function. |
Classes¶
TaskParameterEncoder
¶
Bases: JSONEncoder
Custom JSONEncoder that transforms Path objects to strings.
Ref https://docs.python.org/3/library/json.html
Source code in src/fractal_task_tools/task_wrapper.py
Functions:¶
_check_deprecated_argument(logger_name=None)
¶
Emit warning for deprecated argument.
Source code in src/fractal_task_tools/task_wrapper.py
run_fractal_task(*, task_function, skip_logging_configuration=False, logger_name=None)
¶
Implement standard task interface and call task_function.
| PARAMETER | DESCRIPTION |
|---|---|
|
Callable function that runs the task.
TYPE:
|
|
If
TYPE:
|
|
Deprecated argument (will be removed in a future version)
TYPE:
|