mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Add retry logic for SheetSynchronizer
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138211996
This commit is contained in:
parent
ec73b5ec1c
commit
b7a98451e6
4 changed files with 87 additions and 27 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue