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
Some Updates to worker management #2494
Conversation
Looks like you've got a malformed RST table causing CI failure - looking good otherwise One question: Is this the best way to handle a restart and not just a stop? |
@@ -85,14 +85,14 @@ | |||
env: "{{runtime_envvars}}" | |||
|
|||
- name: "wait a few seconds for the seed node to become available" | |||
when: SEED_NODE_URI is not undefined | |||
when: SEED_NODE_URI is not undefined and SEED_NODE_URI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the extra check for ensuring the SEED_NODE_URI
value is non-empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah... it errors if SEED_NODE_URI is undefined but it can still be None.
So the first check is to avoid an error if it's undefined, the 2nd one is the actual logic of detecting if it has a non None value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can we recommended to restart nodes via clouddeploy given these new changes (think updating configuration)?
@@ -12,4 +12,6 @@ recursive-include nucypher/blockchain/eth/aragon_artifacts *.json | |||
recursive-include nucypher/blockchain/eth/contract_registry *.json *.md | |||
prune nucypher/blockchain/eth/contract_registry/historical | |||
recursive-include nucypher/network/templates *.html *.mako | |||
recursive-include nucypher/utilities/templates *.html *.mako | |||
recursive-include deploy/ansible/worker *.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright! Getting this thing published.
@@ -76,7 +76,7 @@ | |||
max-file: "5" | |||
image: "{{ nucypher_image | default('nucypher/nucypher:latest') }}" | |||
restart_policy: "unless-stopped" | |||
command: "nucypher ursula run {{nucypher_ursula_run_options | default('')}} --lonely {{prometheus | default('')}} {{gas_strategy | default('')}} --network {{network_name}}" | |||
command: "nucypher ursula run {{nucypher_ursula_run_options}} --lonely" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 much needed cleanup
Is this now the recommended way to restart a node via clouddeploy? |
@KPrasch I don't really have a dedicated |
I'll defer to you on that one. Just wondering if this is a good way to handle changing |
The only reason to call A |
Ah yes - Got it. Thanks for clarifying! |
I am actually struggling with how to remove a previously configured CLI arg. How do we unset config file values? |
Yeah, since --max-gas-price is enforced as a decimal it's not possible to set it to |
I'm prepared to approve, but there are outstanding comments and questions from @derekpierre |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved but awaiting responses
Pushing the RFC fixes in a few minutes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎸
@KPrasch I just noticed that I had actually avoided the unsetting issues by only applying cli args on the |
Ah yes, that's a good point. Technically the lack of ability to unset max gas price applies only to config, not one-shot 👍 |
Type of PR:
Required reviews:
What this does:
nucypher cloudworkers stop
featureWhy it's needed: