Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# 1.51.2 - 2025/08/15
# 1.51.3 - 2025/09/19

### Changed

- Reducing default maxTriggersInMemory to 10_000, but leaving it the same for production environment.
It allows to reduce the reserve heap size in non-production environments.

### Changed

Expand Down
5 changes: 3 additions & 2 deletions build.libraries.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ext {
guava : "com.google.guava:guava:33.3.1-jre",
jakartaValidationApi : 'jakarta.validation:jakarta.validation-api:3.0.2',
javaxValidationApi : "javax.validation:validation-api:2.0.1.Final",
lubenZstd : 'com.github.luben:zstd-jni:1.5.6-7',
lz4Java : 'org.lz4:lz4-java:1.8.0',
semver4j : "com.vdurmont:semver4j:3.1.0",
spotbugsAnnotations : "com.github.spotbugs:spotbugs-annotations:${spotbugs.toolVersion.get()}",
springBootDependencies : "org.springframework.boot:spring-boot-dependencies:$springBootVersion",
Expand All @@ -23,8 +25,7 @@ ext {
twBaseUtils : "com.transferwise.common:tw-base-utils:1.13.0",
twEntryPointsStarter : 'com.transferwise.common:tw-entrypoints-starter:2.16.0',
twSpyqlStarter : 'com.transferwise.common:tw-spyql-starter:1.6.2',
lubenZstd : 'com.github.luben:zstd-jni:1.5.6-7',
lz4Java : 'org.lz4:lz4-java:1.8.0',
wiseEnvironmentStarter : "com.transferwise.common:wise-environment-starter:0.1.4",

// versions managed by spring-boot-dependencies platform
flywayCore : "org.flywaydb:flyway-core",
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=1.51.2
version=1.51.3
org.gradle.internal.http.socketTimeout=120000
1 change: 1 addition & 0 deletions tw-tasks-core-spring-boot-starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies {

implementation libraries.apacheCuratorRecipies
implementation libraries.micrometerCore
implementation libraries.wiseEnvironmentStarter

runtimeOnly libraries.twGracefulShutdown
runtimeOnly libraries.twContextStarter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.transferwise.tasks.core.autoconfigure;

import com.transferwise.tasks.helpers.CoreMetricsTemplate;
import com.wise.common.environment.WiseEnvironment;
import com.wise.common.environment.WiseProfile;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
Expand Down Expand Up @@ -34,6 +36,13 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp

MapPropertySource mapPropertySource = new MapPropertySource(PROPERTY_SOURCE_KEY, map);
environment.getPropertySources().addLast(mapPropertySource);

WiseEnvironment.setDefaultProperties(dsl -> dsl
.source("tw-tasks-executor")
.profile(WiseProfile.PRODUCTION)
.keyPrefix("tw-tasks.core.")
.set("max-triggers-in-memory", 100_000)
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public class TasksProperties {
*/
@Min(1L)
@jakarta.validation.constraints.Min(1L)
private int maxTriggersInMemory = 100000;
private int maxTriggersInMemory = 10_000;
/**
* How many triggers maximum do we retrieve from Kafka with one polling loop.
*/
Expand Down