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 piping stdout, output can be interlaced with status messages on stderr #46

Open
hyfen opened this issue Apr 1, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@hyfen
Copy link
Member

hyfen commented Apr 1, 2022

When running something like `$ chronicle-etl -e shell | grep "foo", we often get this sort of race condition:

result 
result
Completed job in 2.207684 secs
  Status:	Success
  Completed:	113
result
result

Options to fix this:

  • detect when stdout is piped (and actually being used!) and don't print a final status message
  • print status message before running loader.finish (but this might print "success" even if the loader then goes on to fail)
  • adding a sleep N before the status message (hacky)
@hyfen hyfen added the bug Something isn't working label Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant