-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Capture stdout and stderr #1515
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1515 +/- ##
==========================================
- Coverage 95.59% 95.49% -0.11%
==========================================
Files 46 46
Lines 7058 7145 +87
==========================================
+ Hits 6747 6823 +76
- Misses 311 322 +11
Continue to review full report at Codecov.
|
I like the idea of workers writing to I'm not sure about saving |
I made this optional now. You have to activate this using |
Any news? |
looking forward to using this feature. |
any reason as to why this PR hasn't been merged? |
i could confirm that this PR works as expected, but the streams are not closed when the function has run till the end. is this by design ? i need to use this workaround: job=q.enqueue(test_loop, capture_stdout=True, capture_stderr=True, retry=Retry(max=1, interval=[.2, 1, 2]), iterations=6) |
Closes #886
Captures the stdout and the stderr of a job and makes it accessible using
job.stdout
ansjob.stderr
.