-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
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
fractal-server/fractal_server/app/schemas/v2/task.py
Lines 76 to 91 in e0e8efc
| @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 |