-
Notifications
You must be signed in to change notification settings - Fork 45
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
Tracing existing input or dependent file should be an option rather than workflow feature #1197
Comments
This is exactly what I do with it. I think it is good behavior. Also, one can always do:
to make it clear that we expect to track the source of |
On the other hand, if a user have a makefile style workflow and would like to run it with dependency tracing, it is quite troublesome and sometime not feasible since at least depends does not support group_by etc. |
Okay then how about make it an |
The design goal of SoS is to make things easy and intuitive so at this point I am trying to cut down options if the added flexibility/power does not worth the added complexity (e.g. the My overall feeling is that this feature determines how to "run" a workflow. It is not something that a user would think of when they are writing it. I mean, it is not likely users would consider what to do if the input does not exist when they write a workflow, and the current design requires users to rewrite the workflow when they need dependency tracing (change So to make the change less painful, we could allow
or something like
but it is still painful if the workflow is large. In comparison,
with an effect similar to The other problem is with the |
Also, I am not against the idea of explicit dependency tracing using input option etc, especially when we have |
I'm not sure if it is true. I think when users write a workflow, it is not unreasonable to assume they know whether or not some files are provided externally or from other steps. For example:
In this case, I guess
makes it more explicit compared to using On the other hand, I do appreciate the elegance of |
Yes, the users know which files are external and which files are produced by others but they do not have to differentiate them in the workflow using But the biggest advantage of |
So we agree to keep all current behavior as is, and add |
I want to revert the depends magic. |
The objection I have is that for workflows with large number of inputs and outputs |
OK, my belief is that performance can be improved over time but complex syntax will only get worse. |
That is to say, step
and
will behave differently with/without With #1199 , I think the performance impact of |
Dependency creation document is updated again , with the new |
@gaow I have created a tutorial on the use of |
It reads great -- it's nice that you ended up implementing both approaches! Yes this issue is resolved. |
I am not quite comfortable at the fact that a user would have to change the workflow from using
input
todepends
, or vise versa if he or she would like to turn on/off tracing dependencies of existing dependencies. It would make sense to introduce an option toinput
and independs
statements.The option could be named
-D
(dependency) or-T
(tracing), although it is a bit difficult to explain this concept very quickly to users.Note that the existing behavior is more flexible in that it allows part of the workflow to be dependency tracing and part of it non-dependency tracing.
The text was updated successfully, but these errors were encountered: