Skip to content

Commit 1fbcfab

Browse files
committed
General Workload Launcher Cleanup (#9838)
1 parent c21eb60 commit 1fbcfab

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

airbyte-workload-launcher/src/main/kotlin/pipeline/LaunchPipeline.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@ class LaunchPipeline(
5757
.doOnSuccess { r ->
5858
if (r == null) {
5959
metricPublisher.count(WorkloadLauncherMetricMetadata.WORKLOAD_PROCESSED_UNSUCCESSFULLY, MetricAttribute(WORKLOAD_ID_TAG, msg.workloadId))
60+
logger.info { "Completed without launching workload." }
6061
} else {
6162
metricPublisher.count(WorkloadLauncherMetricMetadata.WORKLOAD_PROCESSED_SUCCESSFULLY, MetricAttribute(WORKLOAD_ID_TAG, msg.workloadId))
62-
}
63-
logger.info {
64-
("Success: $r")
63+
logger.info { "Success: $r" }
6564
}
6665
}
6766
.subscribe()

airbyte-workload-launcher/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ micronaut:
55
port: 8016
66
netty:
77
access-logger:
8-
enabled: ${HTTP_ACCESS_LOG_ENABLED:true}
8+
enabled: ${HTTP_ACCESS_LOG_ENABLED:false}
99
idle-timeout: ${HTTP_IDLE_TIMEOUT:10m}
1010
metrics:
1111
enabled: true

airbyte-workload-launcher/src/test/kotlin/pipeline/LogPathTest.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ class LogPathTest {
168168
assert(completeFileContent.contains("LAUNCH for workload 1"))
169169
if (assertException) {
170170
assert(completeFileContent.contains("Failure for workload 1"))
171+
assert(completeFileContent.contains("Completed without launching workload."))
172+
} else {
173+
assert(completeFileContent.contains("Success: "))
171174
}
172-
assert(completeFileContent.contains("Success: "))
173175
}
174176
}

0 commit comments

Comments
 (0)