Skip to content

Commit 88a092c

Browse files
authored
Merge pull request #99 from ebean-orm/feature/lambda-detect
Default validateOnHeartbeat = !System.getenv().containsKey("LAMBDA_TASK_ROOT");
2 parents 22f44c9 + 2c410e6 commit 88a092c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebean-datasource-api/src/main/java/io/ebean/datasource/DataSourceConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class DataSourceConfig implements DataSourceBuilder.Settings {
8080
private Properties clientInfo;
8181
private String applicationName;
8282
private boolean shutdownOnJvmExit;
83-
private boolean validateOnHeartbeat = true;
83+
private boolean validateOnHeartbeat = !System.getenv().containsKey("LAMBDA_TASK_ROOT");
8484

8585
@Override
8686
public Settings settings() {

0 commit comments

Comments
 (0)