Skip to content

Conversation

@johnc1231
Copy link
Contributor

@johnc1231 johnc1231 commented Aug 21, 2019

Running the command hailctl dataproc modify --update-hail-version will update the version of hail running on the cluster to the version you're currently running locally.

So if user has a cluster already and we tell them to update hail, they can just do:

pip install hail -U
hailctl dataproc modify my-cluster --update-hail-version

This PR resolves #6674

@danking
Copy link
Contributor

danking commented Aug 21, 2019

Yeah, modify the PR description to include one of the auto-closing keywords applied to the PR.

@danking
Copy link
Contributor

danking commented Aug 21, 2019

https://help.github.com/en/articles/closing-issues-using-keywords

wheel = None
if args.update_hail_version:
if not pkg_resources.resource_exists('hailtop.hailctl', "deploy.yaml"):
raise RuntimeError(f"package has no 'deploy.yaml' file")
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer assertion over if-raise. Users interpret AssertionError with no message as "go talk to the devs" but may interpret RuntimeError with message as their fault.

@danking danking merged commit 29d71e0 into hail-is:master Aug 28, 2019
@johnc1231 johnc1231 deleted the johnc-modify-update-hail-version branch June 1, 2021 00:03
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.

[hailctl] have a --version argument

2 participants