diff --git a/plugins/nf-google/src/main/nextflow/cloud/google/batch/GoogleBatchTaskHandler.groovy b/plugins/nf-google/src/main/nextflow/cloud/google/batch/GoogleBatchTaskHandler.groovy index a96f74c5e7..647c958e56 100644 --- a/plugins/nf-google/src/main/nextflow/cloud/google/batch/GoogleBatchTaskHandler.groovy +++ b/plugins/nf-google/src/main/nextflow/cloud/google/batch/GoogleBatchTaskHandler.groovy @@ -561,7 +561,7 @@ class GoogleBatchTaskHandler extends TaskHandler implements FusionAwareTask { task.stderr = errorFile } status = TaskStatus.COMPLETED - if( belongsToArray ) + if( isChild ) client.removeFromArrayTasks(jobId, taskId) return true }