Andrew Nichol
05/12/2021, 10:02 PMLet's say that you want to always run a flow with parameters that are generated by another flow. Naively, you might manually wait for one flow to finish and then manually trigger the next flow to run with the appropriate parameter values. Prefect makes this pattern easy to automate via the StartFlowRun:
but the example code given represents a flow which is dependent upon a task that returns parameters, not a flow that is dependent upon another flow.
i think the main piece im struggling with is how to return/access some values of the preceding flow from the succeeding flow. (basically getting the input to the parameters
arg of the succeeding flow)Kevin Kho
StartFlowRun
task in the next StartFlowRun
. The docs is more about just setting the dependencies. First class support for passing data is something we are working on. The first option is persisting that output somewhere like S3 for downstream Flow runs to load. The second one is more involved in using the Client
to query the previous flow and get the appropriate information (this would be more appropriate for things like state).Andrew Nichol
05/12/2021, 10:57 PMKevin Kho
Andrew Nichol
05/12/2021, 11:01 PMFAIL signal raised: FAIL('6852b795-df89-4307-971c-c7573200f19c finished in state <Failed: "Some reference tasks failed.">')
and no stacktrace from the task code - making it quite difficult to debugKevin Kho
Andrew Nichol
05/12/2021, 11:03 PM