From 12f7b228cff3ea08876ec4add0fad8af65299d54 Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Fri, 4 Jul 2025 15:21:00 +0200 Subject: [PATCH] Improve AWS Batch spot reclamation error messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add clearer error messages when spot instances are reclaimed - Provide guidance on configuring maxSpotAttempts for automatic retries - Add logging for retry attempts and spot reclamation configuration - Include helpful link to AWS documentation on spot interruptions This addresses issues #5240 and #6225 by making spot reclamation failures more user-friendly and providing actionable guidance. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../aws/batch/AwsBatchTaskHandler.groovy | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/plugins/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy b/plugins/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy index 3aff103736..a17361ed4e 100644 --- a/plugins/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy +++ b/plugins/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy @@ -284,6 +284,38 @@ class AwsBatchTaskHandler extends TaskHandler implements BatchHandler 1 ) { + log.info "[AWS BATCH] Process `${task.lazyName()}` completed after ${attemptCount} attempts (job=${jobId})" + } // take the exit code of the container, if 0 (successful) or missing // take the exit code from the `.exitcode` file create by nextflow // the rationale of this is that, in case of error, the exit code return @@ -310,7 +347,11 @@ class AwsBatchTaskHandler extends TaskHandler implements BatchHandler