Skip to content

Enable other packages reusing tasks from fractal-tasks-core compound tasks #704

Description

@jluethi

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:

At the moment this is not possible.
The quick and dirty workaround at the tasks-level is to have a task of your new package which imports and calls the fractal-tasks-core one.
In the future we may modify the fractal-tasks-core dev tools and task-collection, but we'll need to think it through (how would a task developer declare the association to a task that belongs to a different package? TBD)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    TODO

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions