Hi Everyone,
I have added my flows in the Prefect, and I have facing an strange issue with the flow names.
"The thing is flows run Okay when I trigger them manually but when they are triggered via schedular, they throw an error".Error:
Copy code
Failed due to a TypeError: daily_user_ftue() missing 1 required positional argument: 'name' in the Prefect flow run.
or in prefect.yaml file you also need to specify parameters
This makes sense right? How could the flow know the default parameter when it is scheduled to run?
a
Awaish Kumar
01/30/2024, 11:35 AM
When calling xyz("value") , I do pass some value.
Awaish Kumar
01/30/2024, 11:37 AM
I am using prefect.yml file to add all the deployments.
How can I specify parameter in yml file?
s
schwannden kuo
02/17/2024, 3:51 AM
in a cron job, you can't specify any parameter, as it is triggered automatically. That is why you need to specificy parameter's default value. In deploymnet.yaml, With the example here, I believe you could specify default parameter with
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.