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

Enable overwrites of default environment variables #874

Merged
merged 4 commits into from
Apr 2, 2024

Conversation

jonded94
Copy link
Contributor

@jonded94 jonded94 commented Mar 8, 2024

Should solve #873

Copy link
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

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

This is great many thanks! Would you mind adding a small test to verify this behaviour?

@jonded94
Copy link
Contributor Author

jonded94 commented Mar 8, 2024

Was sure you'd ask that 😄 I'm a bit unsure about that though.

Changing the Scheduler address from the default address will likely lead to that Cluster being broken in the CI test?
We could test though for a custom non-default Dask Worker name I guess? What do you think?

@jacobtomlinson
Copy link
Member

We could test though for a custom non-default Dask Worker name I guess?

Yep that sounds like a great way to test it.

@jonded94
Copy link
Contributor Author

jonded94 commented Apr 2, 2024

@jacobtomlinson sorry for the delay, was busy with other things. PR should now be ready; I included some tests that will use the apparently previously unused "simpleworkergroup.yaml" for deploying an additional worker group that overrides the envvar "DASK_WORKER_NAME".
In the tests, it will check if the DASK_SCHEDULER still is intact.

Copy link
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

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

This looks great thanks!

@jacobtomlinson jacobtomlinson merged commit 93fe171 into dask:main Apr 2, 2024
10 checks passed
@creste
Copy link
Contributor

creste commented Apr 2, 2024

@jonded94 @jacobtomlinson - Does build_job_pod_spec also need to be updated to allow overwriting the default environment variables?

@jonded94
Copy link
Contributor Author

jonded94 commented Apr 2, 2024

Ah, sure, sorry, will do that too tomorrow. This one doesn't need a test though (overriding the scheduler address is anyways a bit weird to test).

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