https://prefect.io logo
Title
f

FuETL

02/01/2023, 4:44 PM
Hey guys, lets say that a have a bunch of task that is used across several flows, is possible to add them to flows without to declare the call with the parameters?
s

Stéphan Taljaard

02/01/2023, 5:14 PM
Hi. Are you asking if you can use the task in many flows, without having to specify the parameters each time the task is called?
c

Christopher Boyd

02/02/2023, 2:13 PM
If you mean you have a designated task that you re-use across flows as an import, yes. If you mean passing around the same parameters for the task, without re-passing new parameters, you can probably do that too, but you might need to sub-class the task to add those parameters when you re-use the object