Orion question: is there an equivalent of `Paramet...
# prefect-community
m
Orion question: is there an equivalent of `Parameter`’s from Prefect 1.0?
k
It’s the inputs into your
flow
so it’s not a task
Copy code
@flow
def abc(x: int, y:int):
    ....
it’s x and y here
👍 1
m
But you can set them from the Orion server?
k
On the deployment you can. From UI I don’t think it’s there yet
👍 2
m
Do you happen to have an example somewhere?
k
Copy code
from prefect import flow, task
from prefect.deployments import DeploymentSpec
from datetime import timedelta

@task
def abc(x):
    return x+1

@flow
def myflow(x:int):
    abc(x)

DeploymentSpec(
    flow=myflow,
    name="hello-world-daily",
    parameters={"x": 1}
)
👍 1
m
Thanks @Kevin Kho. This is exactly what I need!
👍 1