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

Only close the cache db if it is not null. #5631

Merged
merged 6 commits into from
Jan 9, 2025
Merged

Conversation

robsyme
Copy link
Collaborator

@robsyme robsyme commented Jan 2, 2025

This fixes a bug where the cache db is not closed if an exception occurs when opening it. This unhandled exception will cause Nextflow to fail and prevent the Global.cleanUp() from being called.

Copy link

netlify bot commented Jan 2, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 3d70eaf
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/677fe32a28858a000866ea1a

This fixes a bug where the cache db is not closed if an exception occurs when opening it. This unhandled exception will cause Nextflow to fail and prevent the Global.cleanUp() from being called.

Signed-off-by: Rob Syme <[email protected]>
@robsyme robsyme force-pushed the safe-cache-db-close branch from 9ad390b to c5e5fa4 Compare January 2, 2025 21:36
@robsyme robsyme force-pushed the safe-cache-db-close branch from 7d8ca2f to 4b487ff Compare January 2, 2025 22:08
@robsyme robsyme force-pushed the safe-cache-db-close branch from 8003dfb to 7e0b896 Compare January 3, 2025 13:59
@robsyme robsyme force-pushed the safe-cache-db-close branch from 22bfb45 to df8b387 Compare January 3, 2025 19:39
@pditommaso pditommaso marked this pull request as ready for review January 4, 2025 08:02
@bentsherman
Copy link
Member

There is a failing docs snippet, likely due to an environment mismatch. I will update that test in a separate PR.

@pditommaso pditommaso merged commit 9386082 into master Jan 9, 2025
20 checks passed
@pditommaso pditommaso deleted the safe-cache-db-close branch January 9, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants