apiVersion: jenkins.io/v1 kind: PipelineActivity metadata: annotations: lighthouse.jenkins-x.io/cloneURI: https://github.com/greencapitaltrade/deadpool.git lighthouse.jenkins-x.io/job: release pipeline.jenkins-x.io/traceID: e77b670175107bf2ab7f40b9e3c50dcb creationTimestamp: "2026-06-01T21:05:30Z" generation: 7 labels: branch: main build: "46" context: release created-by-lighthouse: "true" event-GUID: 97649db8-5dfd-11f1-8e80-2245485e221d lighthouse.jenkins-x.io/baseSHA: 89fb392cc98d92a3f3d1af79ebbf628dec003394 lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1780347930293" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: pitaltrade-deadpool-main-release-xddbq lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: 89fb392cc98d92a3f3d1af79ebbf628dec003394 lighthouse.jenkins-x.io/refs.org: greencapitaltrade lighthouse.jenkins-x.io/refs.repo: deadpool lighthouse.jenkins-x.io/type: postsubmit owner: greencapitaltrade podName: pitaltrade-deadpool-main-release-9r248-from-build-pack-pod provider: github repository: deadpool tekton.dev/pipeline: pitaltrade-deadpool-main-release-9r248 managedFields: - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: f:branch: {} f:context: {} f:owner: {} f:provider: {} f:repository: {} f:spec: f:lastCommitMessage: {} f:lastCommitSHA: {} f:releaseNotesURL: {} f:version: {} manager: jx-changelog-0.10.18 operation: Update time: "2026-06-01T21:11:37Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:lighthouse.jenkins-x.io/cloneURI: {} f:lighthouse.jenkins-x.io/job: {} f:pipeline.jenkins-x.io/traceID: {} f:labels: .: {} f:build: {} f:created-by-lighthouse: {} f:event-GUID: {} f:lighthouse.jenkins-x.io/baseSHA: {} f:lighthouse.jenkins-x.io/branch: {} f:lighthouse.jenkins-x.io/buildNum: {} f:lighthouse.jenkins-x.io/context: {} f:lighthouse.jenkins-x.io/id: {} f:lighthouse.jenkins-x.io/job: {} f:lighthouse.jenkins-x.io/lastCommitSHA: {} f:lighthouse.jenkins-x.io/refs.org: {} f:lighthouse.jenkins-x.io/refs.repo: {} f:lighthouse.jenkins-x.io/type: {} f:podName: {} f:tekton.dev/pipeline: {} f:spec: .: {} f:baseSHA: {} f:batchPipelineActivity: {} f:build: {} f:buildLogsUrl: {} f:completedTimestamp: {} f:context: {} f:gitBranch: {} f:gitOwner: {} f:gitRepository: {} f:gitUrl: {} f:message: {} f:pipeline: {} f:startedTimestamp: {} f:status: {} f:steps: {} manager: jx-build-controller operation: Update time: "2026-06-01T21:12:26Z" name: greencapitaltrade-deadpool-main-46 namespace: jx resourceVersion: "69584440" uid: 596aac1f-f237-4af2-9a8b-fde3fa06fdbc spec: baseSHA: 89fb392cc98d92a3f3d1af79ebbf628dec003394 batchPipelineActivity: {} build: "46" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/greencapitaltrade/deadpool/main/46.log completedTimestamp: "2026-06-01T21:12:16Z" context: release gitBranch: main gitOwner: greencapitaltrade gitRepository: deadpool gitUrl: https://github.com/greencapitaltrade/deadpool.git lastCommitMessage: | fix(iot-consumer): healthz returns 503 when consumer is unhealthy The TCP health server was hard-coded to respond `HTTP/1.1 200 OK` regardless of the computed `is_healthy` value. k8s probes only look at the status code, so a consumer stuck in an `AllBrokersDown` loop kept passing liveness/readiness and never got restarted — observed in jx-production on 2026-05-29 where one pod sat 28 min spamming `librdkafka: AllBrokersDown` while the probe stayed green. Two changes: 1. start_health_server: pick the HTTP status line based on `is_healthy`, so `unhealthy` now sends `HTTP/1.1 503 Service Unavailable`. JSON body shape is unchanged. 2. On successful consumer.recv() also `consumer_running.store(1)`. After >10 consecutive recv errors the loop flips `consumer_running` to 0, but the previous code never restored it on recovery — meaning even after the fix above, a pod that survived a transient broker outage would remain marked unhealthy forever. Now if brokers come back the probe can self-heal without a restart. Co-Authored-By: Claude Opus 4.7 lastCommitSHA: 3a65083c1061a7f75f447263899cb786fbb27496 message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: greencapitaltrade/deadpool/main releaseNotesURL: https://github.com/greencapitaltrade/deadpool/releases/tag/v0.52.3 startedTimestamp: "2026-06-01T21:05:30Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-06-01T21:12:16Z" name: from build pack startedTimestamp: "2026-06-01T21:05:51Z" status: Succeeded steps: - completedTimestamp: "2026-06-01T21:05:52Z" name: Git Clone startedTimestamp: "2026-06-01T21:05:51Z" status: Succeeded - completedTimestamp: "2026-06-01T21:05:54Z" name: Next Version startedTimestamp: "2026-06-01T21:05:53Z" status: Succeeded - completedTimestamp: "2026-06-01T21:05:59Z" name: Jx Variables startedTimestamp: "2026-06-01T21:05:55Z" status: Succeeded - completedTimestamp: "2026-06-01T21:11:19Z" name: Build Cargo Install startedTimestamp: "2026-06-01T21:06:07Z" status: Succeeded - completedTimestamp: "2026-06-01T21:11:22Z" name: Check Registry startedTimestamp: "2026-06-01T21:11:19Z" status: Succeeded - completedTimestamp: "2026-06-01T21:11:23Z" name: Build Server Image startedTimestamp: "2026-06-01T21:11:22Z" status: Succeeded - completedTimestamp: "2026-06-01T21:11:25Z" name: Build Consumer Image startedTimestamp: "2026-06-01T21:11:24Z" status: Succeeded - completedTimestamp: "2026-06-01T21:11:26Z" name: Build Mqtt Image startedTimestamp: "2026-06-01T21:11:25Z" status: Succeeded - completedTimestamp: "2026-06-01T21:11:37Z" name: Promote Changelog startedTimestamp: "2026-06-01T21:11:27Z" status: Succeeded - completedTimestamp: "2026-06-01T21:11:40Z" name: Promote Helm Release startedTimestamp: "2026-06-01T21:11:37Z" status: Succeeded - completedTimestamp: "2026-06-01T21:12:16Z" name: Promote Jx Promote startedTimestamp: "2026-06-01T21:11:40Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/4072 startedTimestamp: "2026-06-01T21:11:59Z" status: Succeeded startedTimestamp: "2026-06-01T21:11:59Z" status: Succeeded - kind: Promote promote: environment: production pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/4073 startedTimestamp: "2026-06-01T21:12:13Z" status: Succeeded startedTimestamp: "2026-06-01T21:12:13Z" status: Succeeded version: 0.52.3 status: {}