Closed tcompa closed 7 months ago
Yes, I came across the same here: https://github.com/fractal-analytics-platform/fractal-tasks-core/issues/699
Closing that one as duplicate.
For the use in Fractal, we should just drop the overwrite parameter in the second task. For use outside of Fractal, there still could be a reason to have it, but I don't think it's a very strong case.
Let's drop them now & add it to the task docstring
When I set
overwrite=True
incellvoyager_to_ome_zarr_init
andoverwrite=False
incellvoyager_to_ome_zarr_compute
, the compound task runs through with no errors.I need to debug this more carefully, but I think it is due to the init task recreating empty zarr groups for the wells - so that the compute task doesn't need the overwrite flag.
At some point we can decide that the compute task only runs after a successful init task, and then we don't need to expose the same parameter again -> TBD
This is a pattern that we'll hit again, with compound task (something like "do the init/compute tasks need to share some information?", or even "the compute task can/cannot rely on assumptions about what happened within the init task").