Non-Zero Exit Code When Running Prefect Deployment #16114
-
Bug summaryI consistently encounter the following error when running a Prefect deployment:
Here is the code I am using for the deployment: if __name__ == "__main__":
main_flow.from_source(
source="https://github.com/NembotJules/Cameroon-Air-Quality-Prediction.git",
entrypoint="src/data/data_pipeline.py:main_flow",
).deploy(
name="Air-Quality-Pipeline-Deployment",
work_pool_name="my-ecs-pool",
image=DockerImage(
name="prefect-flows:latest",
platform="linux/amd64"
),
schedules=[
CronSchedule(
cron="18 12 * * *",
timezone="Africa/Douala"
)
]
)
### Version info
```Text
Here is the output of 'prefect version' :
Version: 3.1.0
API version: 0.8.4
Python version: 3.10.12
Git commit: a83ba39b
Built: Thu, Oct 31, 2024 12:43 PM
OS/Arch: linux/x86_64
Profile: local
Server type: cloud
Pydantic version: 2.9.2
Integrations:
prefect-github: 0.3.0
prefect-aws: 0.5.0
prefect-docker: 0.6.2 Additional contextWork Pool: I’m using "my-ecs-pool", which is an ECS push work pool automatically provisioned using Prefect. I followed this documentation to set it up. The error message suggests the issue may be related to a mismatch in platform or architecture when running the Docker image. However, I’ve specified platform="linux/amd64" in the deployment. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
hi @NembotJules - this error
is a common gotcha related to the platform on which you build your docker images. Can you produce a minimal reproduction that shows this error is related to the implementation of Prefect? |
Beta Was this translation helpful? Give feedback.
this is not necessarily a bug - this is an error that could be more informative but is a common error among new users when you:
did you follow along with the video I linked?
as I mention, we could certainly improve that error message, but concrete suggestions and MREs are most useful to maintainers