Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨ Context
Currently we initialise hail (
hl.init()
) at the start of any steps that require it.The behaviour of hail (v0.2.127) currently doesn't check if hail is already initialised. This means running the step again will cause hail to attempt to initialise another hail session and crash.
🛠 What does this PR implement
This PR makes it so that when
start_hail
isTrue
at session creation,hl.init()
is automatically ran. As a result it says in sync with the current spark session.🙈 Missing
🚦 Before submitting
dev
branch?make test
)?poetry run pre-commit run --all-files
)?