-
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
Paring of shared
and sos_variable
#1175
Comments
Thanks for the clarification. I agree with what you proposed above but I'd suggest we keep a pointer to this ticket for a note when |
The first example works because of our particular implementation but it is quite confusing that adding |
https://vatlab.github.io/sos-docs/doc/user_guide/step_variables.html#Variablessharedfromothersteps is updated to describe pairing of |
I have enforced the use of
Right now, only variables in |
The following workflow works
because
shared
expose variables to the context of the steps that depends on step 1 in a forward workflow. In contrast, the following workflowwill not work because
default
does not depend ondata
.Now the tricky part is that
will also not work because
2
does not depend on1
on the surface sodata
is not available when2
is executed.To make things clear, I propose that we require, at least document explicit use of
sos_variable()
for anyshare
. That is to say, we not only usesos_variable
to fix the above example,but also document the use of
sos_variable
in the working example:In this way at least we do not have to explain why
data
sometimes exists and sometimes does not exist in examples of this ticket.The text was updated successfully, but these errors were encountered: