Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure jobs correctly deleted after completion #3927

Merged

Conversation

adamrtalbot
Copy link
Collaborator

Nextflow was leaving Azure Batch jobs around in active state after completion. This does the following:

  • Nextflow now deletes jobs even if a task has failed
  • If config azure.batch.TerminateJobsOnCompletion is true (default), it will set the job to automatically terminate after all tasks have finished. This no longer counts towards Azure Batch quota.

Fixes #3926

Changes to reduce hitting Azure Batch active jobs quota. Fixes nextflow-io#3926

Changes:
 - Azure Batch jobs are deleted even if a task within fails

Adds:
 - Sets jobs to automatically terminate based on if the tasks within
   have completed using Azure Batch SDK. This can be configured with
config value `azure.batch.terminateJobsOnCompletion` which defaults to
true.

Signed-off-by: Adam Talbot <[email protected]>
Signed-off-by: Adam Talbot <[email protected]>
@adamrtalbot adamrtalbot force-pushed the fix_azure_job_remains_after_failure branch from 476b380 to 2959f09 Compare May 10, 2023 11:05
@bentsherman bentsherman requested a review from pditommaso May 10, 2023 13:50
@pditommaso pditommaso merged commit b173a98 into nextflow-io:master May 14, 2023
@pditommaso
Copy link
Member

@adamrtalbot Thanks for providing this patch!

@adamrtalbot adamrtalbot deleted the fix_azure_job_remains_after_failure branch May 26, 2023 08:49
abhi18av pushed a commit to abhi18av/nextflow that referenced this pull request Oct 28, 2023
Changes to reduce hitting Azure Batch active jobs quota.

Changes:
 - Azure Batch jobs are deleted even if a task within fails

Adds:
 - Sets jobs to automatically terminate based on if the tasks within
   have completed using Azure Batch SDK. This can be configured with
config value `azure.batch.terminateJobsOnCompletion` which defaults to
true.

Signed-off-by: Adam Talbot <[email protected]>
Signed-off-by: Adam Talbot <[email protected]>
Co-authored-by: Paolo Di Tommaso <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure Batch jobs not cleaned up after task failure
3 participants