1
0
mirror of https://github.com/google/nomulus synced 2026-01-08 07:11:44 +00:00

Add retry logic for SheetSynchronizer

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=138211996
This commit is contained in:
ctingue
2016-11-04 11:13:59 -07:00
committed by Ben McIlwain
parent ec73b5ec1c
commit b7a98451e6
4 changed files with 87 additions and 27 deletions

View File

@@ -78,10 +78,10 @@ public final class AsyncFlowEnqueuer {
*/
private void addTaskToQueueWithRetry(final Queue queue, final TaskOptions task) {
retrier.callWithRetry(new Callable<Void>() {
@Override
public Void call() throws Exception {
queue.add(task);
return null;
}}, TransientFailureException.class);
@Override
public Void call() throws Exception {
queue.add(task);
return null;
}}, TransientFailureException.class);
}
}