-
Notifications
You must be signed in to change notification settings - Fork 7
Fractal default arguments for tasks #177
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
Comments
Good points, let's evaluate this! Two quick thought:
Let's look at this also in the setting of more flexible workflows, resubmissions and running on partial datasets. Maybe we'll need some of the flexibility we barely use for that.
I'd like to maintain the tasks as something that can be run outside of Fractal => the tasks do somehow need to get input & output paths |
To clarify: what I meant was not to remove the arguments, but to have them handled in the same way as the other non-fractal-specific arguments are handled. The behavior for someone who runs the task from outside Fractal would be identical, and the only difference would be for someone who runs the tasks through Fractal. |
Related to this part of the specs:
a possible way forward is to include a default |
Yes, I think such a flag is generally a good idea for tasks. It's quite a top-level question whether a task should overwrite existing data or not and may influence the handling quite a bit. Some tasks already have this, like illumination correction. To address S8: |
Some discussion points for upcoming call: Tasks-side:
Server/task-integration:
Out of scope for today (I'd say):
|
On 1.
|
On 2:
|
Also on 2: Potentially add the glob_pattern to the metadata to pass between those tasks |
(reserved-keyword arguments: input_paths, output_path, metadata, component)
|
Yes, I would say the first implementation follows the standard behavior which we use for |
Makes sense. One thing I just realized though: Currently, to the user, the '.png' or '.tif' is not a task parameter, but something that is defined when adding a resource => the task can just read it from the resource? Or how does it go from the resource to the task? Does Fractal-server combine it with the base folder string and just provide that combination? |
NOTE: this is not an urgent issue, but one that we will need to tackle at some point
Currently fractal requires a set of standard arguments for each task, on top of the task-specific ones:
While the
metadata
andcomponent
one will likely stay, we need to re-evaluate the assumptions behind the I/O paths arguments. Briefly, some comments on how things work at the moment:N>1
inputs, for the moment (apart from maybe increate_zarr_structure
), but we kept it there especially in view of multiplexing./some/path/*.extension
. We often neglect theextension
part. Is it always required? Is it sometimes redundant/wrong? (spoiler: yes, sometimes it is irrelevant). Can we drop it?An obvious possibility is to remove the
input_paths
andoutput_path
arguments from the fractal-required ones, and to shift their definition more towards the user. I'm not (yet) suggesting we do it, but we should explore this approach and assess pros/cons.The text was updated successfully, but these errors were encountered: