-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable other packages reusing tasks from fractal-tasks-core compound tasks #704
Comments
My initial thoughts on:
A task developer puts in something like this in their task_list:
But certainly something to be investigated |
The goal is clear, the implementation for the moment is TBD. My first guess is that we would need to expand the options for what can be written in the manifest, in a way that refers to a different package. Then, we would need to modify the task-collection functions so that they identify this specific branch, and perform custom logic. For context, current task collection functions transform "executable" strings into absolute-path commands by finding them in the current-package directory. The fractal-tasks-core files are not in the current-package directory, so that we need a way to find the correct package directory (through something like A similar logic would be needed in the task dev tools, because we would need to find the correct fractal-tasks-core Python modules so that we can recreate manifest entries and their schemas. |
Agreed: the goal could be this kind of syntax (or maybe something slightly more complex - TBD). |
Especially relevant for reusing someone standard init tasks.
Example:
Could a task in my_new_task_package consist of an init-task from fractal-tasks-core & a compute task from my_new_task_package? e.g. use the init for
copy-ome-zarr-hcs-plate
, but then do a min projection instead of a sum projection[we could of course put multiple projection algorithms in the core package task, more as an illustration of the use case]
Feedback Tommaso:
Excluded directions: Allow this to happen on the db side, e.g. reuse an existing part of a compound task from another task db object
The text was updated successfully, but these errors were encountered: