Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 52b375f

Browse files
committed
Task closecontext_enabled=false for metrics ITs
- Likely an issue in Micrometer RSocket Proxy that is related to: * https://stackoverflow.com/questions/69295676/spring-batch-task-is-getting-shutdown-before-rsocket-proxy-scrapes-metrics-from * micrometer-metrics/prometheus-rsocket-proxy#35
1 parent 9aa3c3a commit 52b375f

File tree

1 file changed

+1
-1
lines changed
  • spring-cloud-dataflow-server/src/test/java/org/springframework/cloud/dataflow/integration/test

1 file changed

+1
-1
lines changed

spring-cloud-dataflow-server/src/test/java/org/springframework/cloud/dataflow/integration/test/DataFlowIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ public void taskMetricsPrometheus() throws IOException {
10521052
.build()) {
10531053

10541054
// task launch id
1055-
long launchId = task.launch();
1055+
long launchId = task.launch(Arrays.asList("--spring.cloud.task.closecontext_enabled=false"));
10561056

10571057
Awaitility.await().until(() -> task.executionStatus(launchId) == TaskExecutionStatus.COMPLETE);
10581058
assertThat(task.executions().size()).isEqualTo(1);

0 commit comments

Comments
 (0)