Skip to content

Commit

Permalink
fix(kafka-runner): don't wait too long if flow is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Nov 4, 2022
1 parent 0f1b193 commit 4603417
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public Executor joinFlow(Executor executor, Boolean withDefaults) {
flow = Await.until(
() -> flowExecutorInterface.findByExecution(executor.getExecution()).orElse(null),
Duration.ofMillis(100),
Duration.ofMinutes(5)
Duration.ofMinutes(flowExecutorInterface.isReady() ? 2 : 5)
);
} catch (TimeoutException e) {
// execution is failed, can't find flow, avoid recursive exception, skipped it.
Expand Down

0 comments on commit 4603417

Please sign in to comment.