from prefect.deployments import Deployment
from prefect.filesystems import GitHub
from fl_blob_ingestion import main_flow
storage = GitHub.load("athenix-prefect")
deployment = Deployment.build_from_flow(
flow = main_flow, # name of the flow function
name = "dp_blob_ingestion_zonda", # name of deployment
work_queue_name = "blob_ingestion_zonda",
path="blob_ingestion",
storage = storage
)
if __name__ == "__main__":
deployment.apply()
I get this error everytime I run it
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\galtman\\AppData\\Local\\Temp\\tmp0t1_en1hprefect\\fl_blob_ingestion.py'
not sure what the problem is, it worked before when I made a deployment the same way about a month ago.
I’ve tried deploying every way possible, I still get the same error. I’ve done both on Orion and the Cloud, as well as using the CLI and using the python object for each.
It worked a month ago so not sure what may have changed.
Can you give me an example of what the path argument does? I’ve also tried putting it in the path argument in the CLI but I get the same result. I’ve tried all these in the yaml