Skip to content

Commit

Permalink
Merge branch 'master' into kmg-job-jar-url
Browse files Browse the repository at this point in the history
  • Loading branch information
kmg-stripe authored Sep 12, 2024
2 parents fb3648c + 41eac8e commit 6ff65a4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ private AsyncHttpClient buildCloseableHttpClient(CoreConfiguration configuration
.setConnectTimeout(configuration.getAsyncHttpClientConnectionTimeoutMs())
.setRequestTimeout(configuration.getAsyncHttpClientRequestTimeoutMs())
.setReadTimeout(configuration.getAsyncHttpClientReadTimeoutMs())
.setFollowRedirect(configuration.getAsyncHttpClientFollowRedirect())
.build());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ public interface CoreConfiguration {
@Default("10000")
int getAsyncHttpClientReadTimeoutMs();

@Config("mantis.asyncHttpClient.followRedirect")
@Default("true")
boolean getAsyncHttpClientFollowRedirect();

@Config("mantis.leader.monitor.factory")
@Default("io.mantisrx.server.core.master.LocalLeaderFactory")
String getLeaderMonitorFactoryName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public class WorkerConfigurationWritable implements WorkerConfiguration {
int asyncHttpClientConnectionTimeoutMs;
int asyncHttpClientRequestTimeoutMs;
int asyncHttpClientReadTimeoutMs;
boolean asyncHttpClientFollowRedirect;
String leaderMonitorFactory;
String metricsCollectorClass;
String jobAutoscalerManagerClassName;
Expand Down Expand Up @@ -130,6 +131,11 @@ public int getMetricsPublisherFrequencyInSeconds() {
return this.metricsPublisherFrequencyInSeconds;
}

@Override
public boolean getAsyncHttpClientFollowRedirect() {
return this.asyncHttpClientFollowRedirect;
}

@Override
public String getLeaderMonitorFactoryName() {return this.leaderMonitorFactory;}

Expand Down

0 comments on commit 6ff65a4

Please sign in to comment.