You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is a dependency, the workflow engine must execute the dependency process and wait for it to successfully produce output before executing the dependent process.
Perhaps we could simply change "successfully produce output" to "start producing output"?
It may be that some implementations support named pipe streams (when Input/Output objects are streamable=True) in which case dependent processes can block until their input is ready, or that some implementations implement some form of process pipelining even when streamable=False (e.g. by implementing the streaming under the filesystem layer). In these instances, it is not necessary to wait for the dependency process to complete producing output before executing dependent processes, but I'm not sure if it is necessary to add this level of detail to the specification.
However, it isn't strictly necessary for an implementation to wait until some output starts to be produced - actually it may be an optimisation that they could proactively start dependent processes before any input data is ready (as long as it can force them to block on input).
Perhaps the simplest thing is for the entire "when there is a dependency..." line to be removed.
A workflow describes a set of steps and the dependencies between those processes. When a process produces output that will be consumed by a second process, the first process is a dependency of the second process. When there is a dependency, the workflow engine must execute the dependency process and wait for it to successfully produce output before executing the dependent process. If two processes are defined in the workflow graph that are not directly or indirectly dependent, these processes are independent, and may execute in any order or execute concurrently. A workflow is complete when all steps have been executed
I would suggest re-wording the "dependency process" - I think using that terminology is inherently confusing as it is not in common usage in English - I would suggest "prerequisite process" as a more clear counterpoint to the "dependent process".
It may also be worth adding a parenthetical specifically regarding streaming.
Perhaps something like:
A workflow describes a set of steps and the dependencies between those processes.
When a process produces output that will be consumed by a second process, the first process is a dependency (prerequisite) of the second process. When there is a dependency between processes, the workflow engine must execute the prerequisite process and wait for it to successfully produce output before executing the dependent process (in case both processes are streamable, it may be sufficient for the workflow engine to arrange for a stream endpoint to block until input data is ready).
If two processes are defined in the workflow graph that are not directly or indirectly dependent, these processes are independent, and may execute in any order or execute concurrently. A workflow is complete when all steps have been executed.
Activity
mr-c commentedon Oct 26, 2015
@jrandall Thank you for the thoughtful question. Do you feel we have addressed your concern in Draft 3?
jrandall commentedon Oct 28, 2015
I think it is still somewhat unclear in draft 3 (http://common-workflow-language.github.io/draft-3/#Workflow_graph):
I would suggest re-wording the "dependency process" - I think using that terminology is inherently confusing as it is not in common usage in English - I would suggest "prerequisite process" as a more clear counterpoint to the "dependent process".
It may also be worth adding a parenthetical specifically regarding streaming.
Perhaps something like:
Expand uris in $schemas in resolve_all(). (#82)
Squashed 'v1.1.0-dev1/salad/' changes from 98a5bea..27c20e8