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

feat(azure-batch): Ignore pool already exists error #5721

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamrtalbot
Copy link
Collaborator

@adamrtalbot adamrtalbot commented Jan 28, 2025

Ignores pool already exists error and continues. Fixes #5713

I can't get the mocks working for the tests :(

Ignores pool already exists error and continues. Fixes nextflow-io#5713

Signed-off-by: adamrtalbot <[email protected]>
Copy link

netlify bot commented Jan 28, 2025

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 3b14485
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/6798f3b6527af3000896b8ca
😎 Deploy Preview https://deploy-preview-5721--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -711,77 +711,85 @@ class AzBatchService implements Closeable {
}

protected void createPool(AzVmPoolSpec spec) {
try {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally speaking, when a long function needs to be wrapped in a try-catch like this, we like to put the try-catch in a separate wrapper function:

protected void safeCreatePool(AzVmPoolSpec spec) {
    try {
        createPool(spec)
    }
    catch( HttpResponseException e ) {
        // ...
    }
}

@pditommaso pditommaso force-pushed the master branch 2 times, most recently from 5a93547 to 27345a6 Compare February 10, 2025 21:46
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.

Ignore "pool exists" error on Azure Batch
2 participants