https://prefect.io logo
d

David Haines

04/01/2020, 7:23 PM
Can parameters be used with the imperative api? Only see reference in the docs to their use with the functional api.
c

Chris White

04/01/2020, 7:28 PM
Hey @David Haines! Yes, for example:
Copy code
p = Parameter("my-param")

flow = Flow("example")

my_task.set_upstream(p, flow=flow, key="p")
where
key
is the name of the keyword argument that
my_task
accepts
d

David Haines

04/01/2020, 7:34 PM
Works a treat. Thank you @Chris White.
👏 1
c

Chris White

04/01/2020, 7:35 PM
awesome - anytime!
j

josh

04/02/2020, 1:28 PM
@Marvin archive “How to use parameters with the imperative API”