Hi Everyone. I am trying to upgrade my prefect fro...
# ask-community
n
Hi Everyone. I am trying to upgrade my prefect from 2.7.7 to 3.2 and stuck while creating a deployment. i am running a docker container in which my flows resides in /opt/prefect/flows/ then, i am running
prefect init
in the same path where my flows are which is generating
prefect.yaml
but everything is null there in the yaml file. Can anyone please help how i can create a deployment or what i am doing wrong here This is the prefect.yaml i am getting
Copy code
deployments:
- name: null
  version: null
  tags: []
  description: null
  schedule: {}
  flow_name: null
  entrypoint: null
  parameters: {}
  work_pool:
    name: null
    work_queue_name: null
    job_variables: {}
My flow file
Copy code
from prefect import flow, task

# Define a task
@task
def add(x, y):
    return x + y

# Define the flow
@flow
def my_flow(a, b):
    result = add(a, b)
    print(f"The sum of {a} and {b} is {result}")

# Execute the flow
if __name__ == "__main__":
    my_flow(1, 2)