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

DM-39325: Move cachemachine configuration into business options #263

Merged
merged 5 commits into from
May 22, 2023

Conversation

rra
Copy link
Member

@rra rra commented May 22, 2023

Allow use of cachemachine and the cachemachine image policy are now configurable in the business options rather than globally.

Restructure code and options to move more things out of the JupyterClient class into the business logic to allow JupyterClient to more easily be moved into Safir, including managing the cachemachine client construction.

Fix passing the maximum WebSocket size into JupyterClient, missed in the previous PR.

Ignore WebSocket messages of type display_data, since those are not interesting to us.

rra added 5 commits May 22, 2023 10:58
As part of the preparation for moving this into Safir, remove the
image definition from the constructor and instead make it an
argument to spawn_lab, which is the only method that requires it.
The previous change to add a maximum WebSocket size to the business
configuration didn't pass the setting into the client. Do so.
In further preparation for moving this class into Safir, pass in the
full base URL for JupyterHub instead of relying on the mobu
configuration and passing in only the URL prefix.
Allow use of cachemachine and the cachemachine image policy are
now configurable in the business options rather than globally.

Move the creation of the cachemachine client into the business
layer to make it easier to move JupyterClient into Safir and
simplify its constructor. Move annotation of cachemachine exceptions
with username information into JupyterClient to simplify the
cachemachine client.
These are produced by Jupyter lab but aren't of interest to us.
@rra rra merged commit 4a65a32 into main May 22, 2023
@rra rra deleted the tickets/DM-39325 branch May 22, 2023 23:16
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.

1 participant