Andrew
12/20/2023, 7:57 PMecs:push
when running prefect work-pool create --type ecs:push --provision-infra my-ecs-pool
. My prefect version is 2.14.11Will Raphaelson
12/20/2023, 8:02 PMprefect --version
Jake Kaplan
12/20/2023, 8:05 PMAndrew
12/20/2023, 8:08 PMWill Raphaelson
12/20/2023, 8:08 PMAndrew
12/20/2023, 8:11 PMJake Kaplan
12/20/2023, 8:22 PMAndrew
12/20/2023, 8:34 PMfrom prefect import flow
from prefect.deployments import DeploymentImage
@flow(log_prints=True)
def my_flow(name: str = "world"):
print(f"Hello {name}! I'm a flow running on ECS!")
if __name__ == "__main__":
my_flow.deploy(
name="my-deployment",
work_pool_name="my-ecs-pool",
image=DeploymentImage(
name="prefect-flows:latest",
platform="linux/amd64",
)
)
However, when I run python example_deploy_script.py
it just gets stuck on building image. I also attached the stacktrace after force stopping the task, it seems to have trouble in dockerutils.py:build_image
. Docker is running tooAndrew
12/20/2023, 8:42 PMAndrew
12/20/2023, 11:58 PM.dockerignore