Taking a look at your build logs, it looks like the build hangs for over 20 minutes before timing out:
7:27:31 AM: success gatsby-source-wordpress VisibleProduct - 1.518s - fetched 9
7:51:55 AM: Failed during stage 'building site': Command did not finish within the time limit
Increasing the build time in this case would not solve the issue. Typically the reasoning behind a build that fails after so much time with no messages in the logs is due to a background process in the build that gets started and never exits.
The offending process could be something like a “watch” command that checks for file changes or similar, which are useful in development environments but not needed when building for production. It could also be a command to run a server to execute scripts.
If you don’t already know what the process is, you might try appending && ps auxw ; false to your build command to see if you can get a listing of what’s there so you can make sure your build doesn’t start it, or make sure that process exits.
Thank you for the quick response. However, the developers working on the site insist that it is a problem with the build time limit.
We have added a couple hundred products to our e-commerce and then the builds stopped working. They do not just fail/stay on hold, they just download these products in the background because there are a lot of them and only after everything is downloaded it shows the result of how long it took to download.
Can you please increase the build time limit to 60m (that’s the maximum if I remember correctly?). We have an important sales awaiting launch and we are stuck with the whole ordeal right now and a day already passed. We will highly appreciate it and are almost sure it will fix the issue
Sure, I’ve increased the build time limit to 60 minutes. If the build hangs until it times out at 60 minutes, you’ll want to reference my initial suggestion.