From 3bae16194dda18260d8a3e0cac60fd168fa765c7 Mon Sep 17 00:00:00 2001 From: Ben Sherman Date: Thu, 3 Oct 2024 08:43:08 -0500 Subject: [PATCH] Add retry policy to google batch describe task (#5356) Signed-off-by: Ben Sherman --- .../main/nextflow/cloud/google/batch/client/BatchClient.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nf-google/src/main/nextflow/cloud/google/batch/client/BatchClient.groovy b/plugins/nf-google/src/main/nextflow/cloud/google/batch/client/BatchClient.groovy index 2d9137a5f22..577d476ae34 100644 --- a/plugins/nf-google/src/main/nextflow/cloud/google/batch/client/BatchClient.groovy +++ b/plugins/nf-google/src/main/nextflow/cloud/google/batch/client/BatchClient.groovy @@ -110,7 +110,7 @@ class BatchClient { Task describeTask(String jobId, String taskId) { final name = TaskName.of(projectId, location, jobId, 'group0', taskId) - return batchServiceClient.getTask(name) + return apply(()-> batchServiceClient.getTask(name)) } void deleteJob(String jobId) {