Skip to content

[placeholder] Deprecate tasks with no type #2901

@tcompa

Description

@tcompa

This is a placeholder. Actual deprecation requires a double check of what is the current situation on existing instances, and of which packages still do not use fractal-task-tools.

Notably we should not have

@model_validator(mode="after")
def set_task_type(self):
if self.type is None:
logger.warning(
f"Task type is not set for task '{self.name}', "
"which will be deprecated in a future version. "
"Please move to `fractal-task-tools`."
)
if self.command_non_parallel is None:
self.type = TaskType.PARALLEL
elif self.command_parallel is None:
self.type = TaskType.NON_PARALLEL
else:
self.type = TaskType.COMPOUND
return self

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions