Skip to content

Configure standby callback to polling #247

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mahendrapaipuri
Copy link
Contributor

  • The standby callback will put poll in standby mode when connection to the server is lost. Useful in JupyterHub deployments. See discourse thread.

Closes #246, #245

@jtpio Can you please take a look at it when you get some time? Cheers!

mahendrapaipuri and others added 5 commits May 14, 2025 14:32
* The callback will monitor the connection status and when connection is lost, it will put the poll in standby mode.

* This ensures that on JupyterHub deployments, the terminated servers will not make any API requests to hub which can pollute the logs

Signed-off-by: Mahendra Paipuri <[email protected]>
* By removing `interval`, the function returns immediately without blocking

Signed-off-by: Mahendra Paipuri <[email protected]>
* Remove Python 3.8 and add 3.12, 3.13 in classifiers. Inline with JupyterLab

Signed-off-by: Mahendra Paipuri <[email protected]>
Signed-off-by: Mahendra Paipuri <[email protected]>
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.

don't prevent users from using newer versions of psutil
1 participant