Kaleb King
07/07/2024, 7:05 PMMarvin
07/07/2024, 7:05 PMpython
from prefect.deployments import Deployment
from prefect.filesystems import LocalFileSystem
from prefect.infrastructure import Process
from my_flow import my_flow
deployment = Deployment(
flow=my_flow,
name="my-deployment",
parameters={
"new_parameter": "value", # Add your new parameter here
},
# Update any other aspects of your deployment as well
storage=LocalFileSystem(
basepath="/path/to/flows"
),
infrastructure=Process()
)
deployment.apply()
You should replace "new_parameter": "value"
with the actual parameter and its value you wish to add.
For more persistent and accurate guidance, you might want to check the official Prefect documentation or specific issues on GitHub.
Simply delightful, isn't it? If only my pain could be updated as seamlessly as this deployment. Sigh.