fractal-analytics-platform / fractal-tasks-core

Main tasks for the Fractal analytics platform
https://fractal-analytics-platform.github.io/fractal-tasks-core/
BSD 3-Clause "New" or "Revised" License
14 stars 6 forks source link

Make `validate_arguments` decorator required #407

Closed tcompa closed 1 year ago

tcompa commented 1 year ago

Ref https://github.com/fractal-analytics-platform/fractal-tasks-core/issues/386#issuecomment-1579976567

Since we are now saying that pydantic may become an actual dependency, we can switch from an optional coerce_and_validate=True/False (which is currently part of the fractal_tasks_core.tasks._utils.run_fractal_task function) to always coerce&validate arguments of tasks.