Increase profile timeouts.

This commit is contained in:
Greyson Parrelli
2021-01-11 15:22:20 -05:00
committed by Alan Evans
parent 29e66e1d47
commit 2dd95c6ef6
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ public final class GroupsV2CapabilityChecker {
JobManager jobManager = ApplicationDependencies.getJobManager();
for (Job job : jobs) {
if (!jobManager.runSynchronously(job, TimeUnit.SECONDS.toMillis(5)).isPresent()) {
if (!jobManager.runSynchronously(job, TimeUnit.SECONDS.toMillis(10)).isPresent()) {
throw new IOException("Recipient capability was not retrieved in time");
}
}

View File

@@ -260,7 +260,7 @@ public class RetrieveProfileJob extends BaseJob {
Recipient recipient = pair.first();
try {
ProfileAndCredential profile = pair.second().get(5, TimeUnit.SECONDS);
ProfileAndCredential profile = pair.second().get(10, TimeUnit.SECONDS);
return new Pair<>(recipient, profile);
} catch (InterruptedException | TimeoutException e) {
retries.add(recipient.getId());