Khuyen Tran
11/03/2021, 9:17 PMflow.run(parameters={"x": 8, "y": 9})
I wonder if there is a way we can do that with flow.register
as well? Something similar to this:
flow.register(project_name="My Project", parameters={"x": 8, "y": 9})
Anna Geller
with Flow("Example: Parameters") as flow:
x = Parameter("x", default=1)
y = Parameter("y", default=2)
here, you use the default value of 1 and 2, and those are the default values that are used during the registration, so there is no need to specify it once again to the flow.register()
.
But then, for each flow run, you can override those at runtime either, as you did it in the flow.run()
, or in the UI in the Run section. Does it make sense?Anna Geller
Khuyen Tran
11/03/2021, 9:36 PM