Skip to content

Commit

Permalink
Update the lastRequestTime to prevent overlapping restarts. (#373)
Browse files Browse the repository at this point in the history
When a restart occurs due to no activity set the lastRequestTime to
now to prevent ti from overlapping itself.
  • Loading branch information
pfifer authored and sahilpalvia committed Aug 20, 2018
1 parent 2e2c892 commit c1e38f0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ Throwable healthCheck() {
if (subscriber != null) {
subscriber.cancel();
}
//
// Set the last request time to now, we specifically don't null it out since we want it to trigger a
// restart if the subscription still doesn't start producing.
//
lastRequestTime = Instant.now();
startSubscriptions();
}
}
Expand Down

0 comments on commit c1e38f0

Please sign in to comment.