Nash Taylor
09/17/2024, 1:40 AMFlow run infrastructure exited with non-zero status code:
Exited with non 0 code. (Error Code: 1)
This may be caused by attempting to run an image with a misspecified platform or architecture.
I've been following this guide (https://docs.prefect.io/3.0/deploy/infrastructure-examples/serverless) and the prefect work-pool create
step went fine. What am I missing here?Nash Taylor
09/17/2024, 1:40 AMfrom prefect import flow
from prefect.docker.docker_image import DockerImage
from prefect_aws import AwsCredentials
@flow(log_prints=True)
def hello_world(name: str = "world", goodbye: bool = False):
print(f"Hello {name} from Prefect! 🤗")
if goodbye:
print(f"Goodbye {name}!")
creds = AwsCredentials.load("awscredentials")
print(creds.aws_access_key_id)
if __name__ == "__main__":
hello_world.deploy(
name="ecs-test-deployment",
image=DockerImage(name="my-pipeline", dockerfile="infrastructure/docker/Dockerfile"),
work_pool_name="my-pipeline-workpool",
)
Nash Taylor
09/17/2024, 3:23 AMprefect
is on the PATH
in your Docker image. Doh.Bogdan Posa
09/19/2024, 7:57 AM