How does one add a new Parameter to an existing Flow? I inherited a Flow from a colleague that has since left and I wish to add a new Parameter
with Flow("HathiTrust Deposit (MARCXML)") as flow:
deposit = Parameter("deposit", default=False)
This is the existing parameter. I want to add a second so naturally I tried adding another underneath the first like this:
with Flow("HathiTrust Deposit (MARCXML)") as flow:
deposit = Parameter("deposit", default=False)
local_test = Parameter("local_test", default=False)
This results in an error:
UserWarning: Tasks were created but not added to the flow: {<Parameter: local_test>}. This can occur when `Task` classes, including `Parameters`, are instantiated inside a `with flow
How does one add a parameter to an existing flow?