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

CI: Cleanup namespaces in parallel #864

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

manics
Copy link
Member

@manics manics commented Oct 14, 2024

Currently if deletion of one namespace fails during cleanup the other namespace won't be deleted. Using asyncio.gather means we can delete in parallel but still receive the first Exception

Currently if deletion of one namespace fails during cleanup the other namespace won't be deleted. Using asyncio.gather means we can delete in parallel but still receive the first Exception
@manics manics added the ci label Oct 14, 2024
else:
print("waiting for %s to delete" % namespace)
await asyncio.sleep(1)
raise Exception(f"Namespace {namespace} not deleted after 20 s")
Copy link
Member Author

Choose a reason for hiding this comment

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

This line is new. Previously this function would wait up to 20s but not do anything if the namespace hadn't been deleted. Is that the behaviour we desire?

Copy link
Member

Choose a reason for hiding this comment

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

What you did now is better!

@consideRatio consideRatio merged commit d5738ce into jupyterhub:main Oct 14, 2024
9 checks passed
@manics manics deleted the namespace-deletion-all branch October 14, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants