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

When displaying the status of a processing file it blocks #2

Closed
jmathai opened this issue Feb 4, 2012 · 0 comments
Closed

When displaying the status of a processing file it blocks #2

jmathai opened this issue Feb 4, 2012 · 0 comments

Comments

@jmathai
Copy link
Member

jmathai commented Feb 4, 2012

Ideally when running the script it displays Processing 1 of 10 1234567890.json... immediately as it starts processing the file and then appends OK or FAILED once complete. Right now the first part appears to wait till the second part is ready which means the entire line shows up only after it's finished.

I presume it's the comma after the first print command.

samatjain added a commit to samatjain/import that referenced this issue Feb 6, 2012
Use sys.stdout.flush() to flush output when displaying status. Fixes
issue photo#2.
samatjain added a commit to samatjain/import that referenced this issue Feb 6, 2012
Use sys.stdout.flush() to flush output when displaying status. Fixes
issue photo#2.
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

No branches or pull requests

2 participants