A Flow's parameters need to be passed to at least one task's run() function, or error would be raised, right?
__________________________________________________
from prefect import task, Flow, Parameter
from prefect.core.task import Task
class print_plus_one(Task):
def __init__(self, x):
super().__init__()
self.x = x
def run(self):
print(self.x + 1)
with Flow('Parameterized Flow') as flow:
x = Parameter('x')
print_plus_one(x)()
flow.run(parameters=dict(x=1)) # prints 2
flow.run(parameters=dict(x=100)) # prints 101
__________________________________________________
ValueError: Flow.run received the following unexpected parameters: x