Skip to content

Commit 944f48f

Browse files
committed
Add DeadlineExceededException to Google Batch retryable exceptions
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
1 parent 7ad7a23 commit 944f48f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/nf-google/src/main/nextflow/cloud/google/batch/client/BatchClient.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import java.util.concurrent.TimeoutException
2121
import java.util.function.Predicate
2222

2323
import com.google.api.gax.core.CredentialsProvider
24+
import com.google.api.gax.rpc.DeadlineExceededException
2425
import com.google.api.gax.rpc.FixedHeaderProvider
2526
import com.google.api.gax.rpc.NotFoundException
2627
import com.google.api.gax.rpc.UnavailableException
@@ -180,6 +181,8 @@ class BatchClient {
180181
boolean test(Throwable t) {
181182
if( t instanceof UnavailableException )
182183
return true
184+
if( t instanceof DeadlineExceededException )
185+
return true
183186
if( t instanceof IOException || t.cause instanceof IOException )
184187
return true
185188
if( t instanceof TimeoutException || t.cause instanceof TimeoutException )

0 commit comments

Comments
 (0)