bobzheng258
11/14/2024, 5:58 AMsrc
(i.e. src/tc_flow.py
). When I deployed with python src/tc_flow.py
, I got error when triggering the flow. Any thoughts? Thanks.
Flow run infrastructure exited with non-zero status code:
Container exited with non-zero code (Error Code: 1)
This may be caused by attempting to run an image with a misspecified platform or architecture.
tc_flow.py
@flow
def tc_flow():
...
if __name__ == "__main__":
tc_flow.deploy(name="TC-Summary-ACR",
work_pool_name="my-aci-pool",
image= DockerImage(name="tc-summary-image:v1.0.0", platform="linux/amd64"),
schedule= CronSchedule(cron="0 16 * * *", timezone="America/Los_Angeles")
)
And I also tried to create a main.py
under root folder, the deploy with python main.py
, but I got the same error.
main.py
from src.tc_flow import tc_flow
if __name__ == "__main__":
tc_flow.deploy(name="TC-Summary-ACR",
work_pool_name="my-aci-pool",
image= DockerImage(name="tc-summary-image:v1.0.0", platform="linux/amd64"),
schedule= CronSchedule(cron="0 16 * * *", timezone="America/Los_Angeles")
)
Nate
11/14/2024, 4:49 PMThis may be caused by attempting to run an image with a misspecified platform or architecture.this is the issue which is about how your image is built and from what type of machine - do you have a mac?
bobzheng258
11/14/2024, 5:22 PMdocker run
, which gave me the lib missing errors.
One suggestion: if the error can output the docker execution error, it would be more helpful, instead of just "Container exited with non-zero code (Error Code: 1)"