Brandon T. Kowalski
06/29/2022, 6:11 PMwith 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?James Sopkin
06/29/2022, 6:31 PMBrandon T. Kowalski
06/29/2022, 6:31 PMJames Sopkin
06/29/2022, 6:32 PMBrandon T. Kowalski
06/29/2022, 6:32 PM