-
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
Remove active option of tasks? #1064
Comments
Good move! But I did not realize we can do it for
Got this using sos-0.16.11, though
|
Sorry, I mixed what I planned and what is actually implemented. I will update the ticket. |
Okay am trying to dig up related ticket: seems like we were once attempted that. I'm trying to find the ticket that motivated this feature in the first place and try to see if it was something we needed but cannot be implemented easily using existing features ... do you have an impression? |
as
because the former does not allow the use of script format. It was later extended to task to allow controlling entire tasks. My major concern is
because it causes a problem that is not easy to fix, and I am not particularly happy with either of the solutions. |
Ahh sure, I actually use this a lot:
(yes, without script it is not very convenient. That's why I often wrap it with So is this usercase the only reason |
My point was that
can be achieved by
and the latter is safer because it removes Basically, |
Okay, but I cannot do:
right? I'd have no hesitation to remove |
Nothing stops you from doing
but in this case you might not want the side effect of removing |
There is an
active
option of task. The usage is generally as demontrated in the exampleor
However, both usages can be replaced by the
stop_if
actionwith an important difference.
For example,
will generate the following
because the step expects output
test_0.txt
,test_1.txt
etc but onlytest_1.txt
will be generated by the task.However, the following works:
because action
stop_if
will actually allow sos to discard the entire substep and associated_output
.There are a few solutions to improve the situation:
active
and usestop_if
to avoid duplicated feature.active
toinput
so that the option can be processed before_output
is generated.active
to discard_output
as well. However,Similar to the task option, we also have an
active
option for actions, which was designed for something likeSo in this case, allowing
active=-1
to discard_output
of all other substeps does not make sense.In summary,
active
is currently a questionable option that is error prone, has function overlapping with other mechanisms, and should be removed before it can be implemented better.The text was updated successfully, but these errors were encountered: