Skip to content

Commit

Permalink
Increased remote builder timeout from 4 to 20 min (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl authored and JCash committed Nov 21, 2023
1 parent c7382e4 commit b22ff35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class RemoteEngineBuilder {
public RemoteEngineBuilder(@Value("${extender.remote-builder.url:}") String remoteBuilderBaseUrl,
@Value("${extender.job-result.location}") String jobResultLocation,
@Value("${extender.remote-builder.build-sleep-timeout:5000}") long buildSleepTimeout,
@Value("${extender.remote-builder.build-result-wait-timeout:240000}") long buildResultWaitTimeout) {
@Value("${extender.remote-builder.build-result-wait-timeout:1200000}") long buildResultWaitTimeout) {
this.remoteBuilderBaseUrl = remoteBuilderBaseUrl;
this.buildSleepTimeout = buildSleepTimeout;
this.buildResultWaitTimeout = buildResultWaitTimeout;
Expand Down Expand Up @@ -152,7 +152,7 @@ public void buildAsync(final File projectDirectory,
File errorFile = new File(resultDir, BuilderConstants.BUILD_ERROR_FILENAME);
PrintWriter writer = new PrintWriter(errorFile);
writer.write(String.format("Job %s result cannot be defined during %d", jobId, buildResultWaitTimeout));
writer.close();
writer.close();
}
HttpGet resultRequest = new HttpGet(String.format("%s/job_result?jobId=%s", remoteBuilderBaseUrl, jobId));
response = client.execute(resultRequest);
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extender:
enabled: false
platforms: ios, osx
build-sleep-timeout: 5000
build-result-wait-timeout: 240000
build-result-wait-timeout: 1200000
gradle:
location: /tmp/.gradle
# megabytes
Expand Down

0 comments on commit b22ff35

Please sign in to comment.