Skip to content
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 settings UI states max build time is 8 hours #3759

Open
5 tasks done
walmartshopper opened this issue Oct 12, 2023 · 3 comments
Open
5 tasks done

Build settings UI states max build time is 8 hours #3759

walmartshopper opened this issue Oct 12, 2023 · 3 comments

Comments

@walmartshopper
Copy link

Before opening, please confirm:

  • I have checked to see if my question is addressed in the FAQ.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

App Id

N/A

AWS Region

us-east-2

Amplify Hosting feature

Build settings

Frontend framework

Next.js

Next.js version

13

Next.js router

App Router

Describe the bug

The build settings UI states "The maximum build timeout is 8 hours." However if you try to save anything higher than 120 minutes, it says "Updating build settings failed. Build timeout cannot exceed 120 minutes."

I have a project that needs to build 2738 SSR pages. The build is expected to take very close to 120 minutes and possibly slightly more. If I cannot extend my build timeout beyond 120 minutes, Ampllify may not work for me. Maybe it could be a quota that defaults to 120 but could be increased.

Expected behavior

Entering 480 minute build timeout should work based on stated 8-hour maximum.

Reproduction steps

  1. Open build settings.
  2. Note that it says "The maximum build timeout is 8 hours."
  3. Try to enter a value higher than 120 minutes and save

Build Settings

No response

Log output

# Put your logs below this line


Additional information

No response

@Jay2113
Copy link
Contributor

Jay2113 commented Feb 8, 2024

Hi @walmartshopper 👋 , thanks for reaching out. The build timeout of 120 mins or 2 hours is a hard limit and we have updated the Build image settings UI in the Amplify console to reflect the same. That being said, I am curious to know about your use case and would like to explore any opportunity that could help reduce your Amplify build times.

@Jay2113 Jay2113 added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Feb 8, 2024
@Jay2113 Jay2113 removed their assignment Feb 8, 2024
@walmartshopper
Copy link
Author

The app is The Hockey News Archive which is a full archive of every issue of the magazine. The build includes doing server-side rendering for around 3000 pages, and the images for each page are being pulled in from the Zinio CDN. Each page takes an average of 3 seconds to generate, resulting in a build time of around 150 minutes. Throwing more cpu or ram at the build server doesn't improve the build time at all. I ended up having to use CodePipeline / Codebuild / CodeDeploy which has an 8 hour build time limit, and then deploying to ec2 instances behind a load balancer and using cloudfront for static assets.

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Feb 9, 2024
@walmartshopper
Copy link
Author

@Jay2113 I would love to see the max build time bumped up to at least 4 hours, because it's the only thing preventing me from running this app on Amplify. Maybe it could be a quota that defaults to 2 hours but could be requested to increase to 4 or 8 hours for special use cases like this. Now that we are getting charged for using IPv4 addresses, the cost of our current infrastructure increased dramatically, so it would be great if we could switch to Amplify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants