Skip to content

Commit

Permalink
Sleep timeout in millis
Browse files Browse the repository at this point in the history
  • Loading branch information
jafarre-bi committed Sep 2, 2024
1 parent ecdcbdc commit f4e897f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/ods/orchestration/usecase/DocGenUseCase.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import org.ods.orchestration.util.Project
abstract class DocGenUseCase {

private static final int MAX_RETRIES = 12
private static final int RETRY_WAIT_SECONDS = 5
private static final long RETRY_WAIT_MILLISECONDS = 5000L

static final String RESURRECTED = "resurrected"
protected Project project
Expand Down Expand Up @@ -266,7 +266,7 @@ abstract class DocGenUseCase {
// Given the lack of documentation about the possible exceptions, we have to consider all of them
// as retryable. Anyway, we have a MAX_RETRIES.
}
Thread.sleep(RETRY_WAIT_SECONDS)
sleep(RETRY_WAIT_MILLISECONDS)
}
throw new ServiceNotReadyException(status, "DocGen service is not ready.")
}
Expand Down

0 comments on commit f4e897f

Please sign in to comment.