Nimesh Kumar
03/20/2025, 7:19 AMprefect 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
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
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)