Skip to content

Commit

Permalink
Health checker skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
pun-ky committed Apr 8, 2021
1 parent e9631b1 commit 79e6da2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ class HealthChecker(val common: CommonExtension) {

@Suppress("ComplexMethod")
fun start(verbose: Boolean = this.verbose.get(), retry: Retry = this.retry): List<HealthStatus> {
if (checks.isEmpty()) {
logger.info("Health checking skipped as no checks defined.")
return listOf()
}

common.progress(checks.size) {
step = "Health checking"

Expand Down

0 comments on commit 79e6da2

Please sign in to comment.