-
Notifications
You must be signed in to change notification settings - Fork 8
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
Write to standard out regularly instead of just the end of the process #19
Comments
Ah I see, can you confirm that it works as expected using the Go binary directly (non-python wrapper)? |
Ah i see, yeah It's the progress update that writes and overwrites the text (in-place) without creating a new line, I'm not too sure how to do this correctly in python since it's taking the output of the child process (go binary). |
Appreciate the invitation, but having never contributed to a public repo I don't feel experienced enough to work on your project. However, this would be the correct way in Python to overwrite the output in-place:
|
When processing big tables there can be a long time when Sling sits on "INF streaming data". Only when everything is streamed then the output is written to the terminal. So in practice there can be minutes / hours where nothing seems to be happening, and at the very end the entire log (e.g., 7m57s 22,083,410 46359 r/s) is dumped.
For my own projects I have successfully followed the suggestion from this Stackoverflow article, i.e., to call
sys.stdout.flush()
regularly - maybe that's the solution here as well!The text was updated successfully, but these errors were encountered: