From 55bc405258743a1df3899da9a8119305938be4f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20R=C3=B6gner?= Date: Mon, 7 Apr 2025 13:40:30 +0200 Subject: [PATCH] DS-1044: Fix issue that deletion of state check triggers is tried indefinitely MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Benjamin Rögner --- .../com/here/xyz/jobs/steps/execution/LambdaBasedStep.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xyz-jobs/xyz-job-steps/src/main/java/com/here/xyz/jobs/steps/execution/LambdaBasedStep.java b/xyz-jobs/xyz-job-steps/src/main/java/com/here/xyz/jobs/steps/execution/LambdaBasedStep.java index 2444c1c702..a9145b8207 100644 --- a/xyz-jobs/xyz-job-steps/src/main/java/com/here/xyz/jobs/steps/execution/LambdaBasedStep.java +++ b/xyz-jobs/xyz-job-steps/src/main/java/com/here/xyz/jobs/steps/execution/LambdaBasedStep.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017-2024 HERE Europe B.V. + * Copyright (C) 2017-2025 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -197,9 +197,11 @@ private void unregisterStateCheckTrigger() { } private void _unregisterStateCheckTriggerDeferred(long waitMs, int attempt) { - if (attempt > 5) + if (attempt > 5) { logger.error("[{}] Could not unregister state-check trigger {} after {} attempts.", getGlobalStepId(), getStateCheckRuleName(), attempt - 1); + return; + } if (isSimulation) return;