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

Fix hanging caused by tqdm stderr not being printed #352

Merged
merged 4 commits into from
Mar 21, 2024
Merged

Conversation

tgaddair
Copy link
Contributor

Fixes #334
Fixes #316

Using the lorax-launcher in container environments like Docker / k8s, the tqdm messages are never printed to stderr. This leads to logging backpressure that eventually causes the process to hang:

https://docs.docker.com/config/containers/logging/configure/#configure-the-delivery-mode-of-log-messages-from-container-to-log-driver6

The solution here is to consume stderr in the launcher on a separate thread to avoid the backpressure from accumulating.

@tgaddair tgaddair merged commit f474be2 into main Mar 21, 2024
2 checks passed
@tgaddair tgaddair deleted the fix-stderr branch March 21, 2024 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants