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

Adds Python 3.9 compatability by fixing asyncio api changes #7

Merged
merged 5 commits into from
Jan 5, 2021

Conversation

tdhopper
Copy link
Collaborator

Python 3.7 deprecated with await lock syntax

Python 3.7 deprecated "asyncio.Tasks.all_tasks" and added asyncio.all_tasks

This changes to the new API while maintaining 3.6 support.

Relates to ideonate/jhsingle-native-proxy#8

Python 3.7 deprecated "with await lock"
(https://docs.python.org/3.7/library/asyncio-sync.html#boundedsemaphore)

Python 3.7 deprecated "asyncio.Tasks.all_tasks"

This changes to the new API while maintaining 3.6 support.
@tdhopper
Copy link
Collaborator Author

tdhopper commented Dec 29, 2020

Hmm, once in a while on 3.9, I'm getting a SIGKILL instead of a SIGTERM in the test_simpervisor.test_terminate test. I'm not sure how serious that is.

@yuvipanda
Copy link
Collaborator

Thanks a lot for opening this, @tdhopper! I've also invited you as a collaborator on this repo :)

@yuvipanda
Copy link
Collaborator

How often are you getting the SIGKILL? Could that be just a change in timing / race condition?

@tdhopper
Copy link
Collaborator Author

@yuvipanda Race condition seems likely. I re-ran the test 100 times and it didn't happen again 🤷‍♂️

@yuvipanda yuvipanda merged commit 6602562 into jupyterhub:master Jan 5, 2021
@yuvipanda
Copy link
Collaborator

Thanks, @tdhopper :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants