Join Slack
Powered by
Chaining tasks with no input: how to do that?
# ask-community
n
Nat Busa
12/09/2019, 7:01 AM
Chaining tasks with no input: how to do that?
Nat Busa
12/09/2019, 7:51 AM
managed that! in imperative mode use flow.chain(...)
Nat Busa
12/09/2019, 7:52 AM
inside a flow context use the followin snippet:
Nat Busa
12/09/2019, 7:52 AM
import prefect
def chain(*tasks): flow = prefect.context.get("flow", None) flow.chain(*tasks)
2
Views
Open in Slack
Previous
Next