Running dependent flows with parameters
See original GitHub issueHi!
I dont see in doc, how i can add parameters in b_flow
from a_flow
and dir parameter. I think for this i can use local context in b_flow
from a_flow
. May be add upstream_tasks
with parameters?
Flow A:
@task
def any_work(a: str) -> str:
return f'/tmp/{a}'
with Flow('a_flow') as flow:
name = Parameter('name', default='all')
result = any_work(name)
Flow B:
@task
def any_work(a: str, b: str) -> str:
return f'{a}/{b}'
with Flow('b_flow') as flow:
home = Parameter('home', required=True)
dir = Parameter('dir', default='any')
result = any_work(home, dir)
Flow C:
a_flow = FlowRunTask(flow_name='a_flow', wait=True)
b_flow = FlowRunTask(flow_name='b_flow', wait=True)
with Flow('c_flow') as flow:
name = Parameter('name', default='all')
dir = Parameter('dir', default='any')
a_flow_state = a_flow(parameters={'name': name})
# this error code, but how i can add parameters in `b_flow` from `a_flow` and dir parameter?
result = b_flow(
upstream_tasks=[a_flow_state],
parameters={
'home': a_flow_state.result,
'dir': dir,
},
)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Running dependent flows - Prefect Docs
Running dependent flows ... Running a parametrized flow. Let's say that you want to always run a flow with parameters that are generated...
Read more >How to Make Your Data Pipelines More Dynamic Using ...
5. Start a parametrized remote flow run from the UI ... The easiest and most accessible way of triggering a parametrized flow run...
Read more >Create and Use Parameters in Flows - Tableau Help
Instead of building and maintaining multiple flows, you can now build one flow and use parameters to run the flow with your different...
Read more >Solved: Trigger a flow from within another flow
Run a child flow action is only available from solution. You can run a manually trigger flow as run a child flow. Create...
Read more >Flow Pattern Parameters - Oracle Help Center
Flow parameters are a subset of task action parameters. They supply the information required to successfully complete the tasks in the flow pattern....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for sharing your task @peterroelants – this should be resolved by #4563
I did this workaround to retrieve results: