Skip to content

Commit

Permalink
Removed heardcoded 10 second timeout for an activity under test
Browse files Browse the repository at this point in the history
  • Loading branch information
mfateev committed Dec 16, 2023
1 parent 7ee8f96 commit ae787e5
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,17 +363,13 @@ private Result executeActivity(
localActivity));

try {
// 10 seconds is just a "reasonable" wait to not make an infinite waiting
return activityFuture.get(10, TimeUnit.SECONDS);
return activityFuture.get();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new RuntimeException(e);
} catch (ExecutionException e) {
log.error("Exception during processing of activity task");
throw new RuntimeException(e);
} catch (TimeoutException e) {
log.error("Timeout trying execute activity task {}", activityTask);
throw new RuntimeException(e);
}
}

Expand Down

0 comments on commit ae787e5

Please sign in to comment.