Hi Team, when I try to use `Deployment.build_from...
# ask-community
m
Hi Team, when I try to use
Deployment.build_from_flow
from
prefect.deployments
to deploy flow to Prefect cloud, the process is stuck without erroring out and yet didn’t give any verbose status/progress. I checked the code was uploaded to S3 bucket but the deployment never happened on the Prefect cloud. Do you know what might be the root cause? and is it possible to add more verbose loggings for the
Deployment.build_from_flow
method?
r
Have you applied it?
👀 1
m
what should I apply?
r
the deployment
m
Yes below is the script I used to do the deployment, it worked before but after reinstall prefect agent on EKS, running this script will get stuck indefinitely
Copy code
from start_aggregration_process import start_aggregation_process
from prefect.deployments import Deployment
from prefect.filesystems import S3

deployment = Deployment.build_from_flow(
    flow=start_aggregation_process,
    name="test",
    version="2",
    tags=["TEST_PIPELINE"],
    storage=S3.load("myawss3block"),
    work_queue_name="prefect-dev"
)

if __name__ == "__main__":
    deployment.apply()
    print("deployment done")
r
are you running that locally or from the agent?
m
locally
r
odd, is it prefect cloud or self hosted
m
it’s prefect cloud, and I can make all API calls to the cloud
r
does the cli work
m
Yes
r
I would run in vscode, debug into the prefect code and see where it is getting stuck
maybe some s3fs weirdness