ERROR: terminal inactive for 15m0s, build cancelled
So, meanwhile we’re runnin the agent container with DRONE_TIMEOUT=180m. But then, after about an hour:
ERROR: maximum time limit exceeded, build cancelled
So… is there any option to extend the maximum build time? Our builds are taking about two, two an a half hours - so 180m would fit well. I couldn’t find anything about that here or in the documentation…
Seems the default maximum is 900 mins. I’m using Drone to run analyses (instead of builds) that can take several days. I can set the agent timeout arbitrarily (eg DRONE_TIMEOUT=48h), is there some way to increase the server timeout?
denis8h bradrydzewski
Seems the default maximum is 900 mins. I’m using Drone to run analyses (instead of builds) that can take several days. I can set the agent timeout arbitrarily (eg DRONE_TIMEOUT=48h), is there some way to increase the server timeout?
Yes, if you go to your repository settings in Drone there is a slider that lets a Drone administrator increase the timeout period.
the 900 minute restriction is only in the UI because the slider needs to be bounded. That means you can use the API to update or update directly in the database
update builds set build_timeout=2592000
where build_repo_id IN (
select repo_id from repos where repo_full_name = ?
);