-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build timed out #1942
Comments
Question, did you recently integrate a more complex service into your build? You can increase the build timeout threshold in the amplify control console We had this problem when we first integrated an opensearch cluster into our build. the build timed out but going to the cloud formation console we could see that the cloud formation stacks did finish ultimately once the initial cluster was up the jobs would go back to being fast again but complex changes to the cluster would still drag a bit. We are currently considering two solutions moving to a split front end backend project style so that we can give the backend the time it needs complete and speedup front end deploys. Alternatively we are exploring breaking out big ticket items like cognito and opensearch and some analytical things cross account to a central account then making these resources available cross account refereces to the smaller serverless projects. |
Hey @krtallc, could you provide us the App-id, region and name of the branch? |
@dataminion and @ykethan and team, greetings! I appreciate your response. @dataminion - I had not integrated any complex services. At a high level it is a static 3 page webpage with option of selecting an appointment schedule to receive a calendar invite with appointment slot selected for the services provided. Even with _BUILD_TIMEOUT set to 120 timeout happened. I am glad to see the cloud formation stacks finished. @ykethan - I deleted all the created deployments and started working on a local cli test build manually. So I recreated a new build which failed again. Here are the details: 9/4/2024, 7:26 PM 30 minutes 18 seconds https://main.d360tpbeqlbhhk.amplifyapp.com krtallc_20240831:main Auto-build |
Hey, thank you for your patience. On diving into the logs did notice the
The application is build and the artifact is then deployed to the CDN. refer to this documentation. While i am not familiar with streamlit, i was able to find a aws-sample app that may help with your use case |
@krtallc 👋 , as stated previously the Amplify builds have failed due to timing out after 30 minutes (the default timeout limit). However, we do support a maximum build timeout of 2 hours. For deploying Streamlit based Python apps, we recommend reducing the number of long running commands executed during the build or optimize the build process to ensure faster execution as this can help prevent timeout issues. Closing the thread since the root cause has been identified for the build failures. |
Environment information
Describe the bug
Build
More than 1 hour
Build timed out
Here is the amplify.yml:
Here is deploy log:
There is no additional information that led to build time out error. The environment variable _BUILD_TIMEOUT is set to 120 and still same result. Unsure of what the issue could be? Background - application code is python with streamlit framework, 99% static content with a scheduling module which is real time dynamic.
Don't know how to proceed, any help would be greatly appreciated.
Reproduction steps
The amplisy.yml is attached above, The Repository
is
krtallc:main
environment variable
_BUILD_TIMEOUT is set to 120
The text was updated successfully, but these errors were encountered: