https://prefect.io logo
a

Apoorva Desai

03/01/2022, 9:08 AM
Hello! How do I access the string value in a Parameter object? I'm passing a string Parameter to a flow throw the CLI as
prefect run --watch --id flowId --param strparam="paramValue"
. Then in the flow.py file, I am initializing outside the flow
strparam = Parameter("strparam", default "hello")
but I'm unable to access
"paramValue"
. Prefect only sees this
<Parameter: strparam>
a

Amanda Wee

03/01/2022, 9:32 AM
A prefect parameter is a task, so it belongs within the context of a flow. Move that line to within the flow.
💯 1
upvote 1
133 Views