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

capture stdio during execution of a task #423

Closed
cpendery opened this issue Dec 22, 2023 · 2 comments · Fixed by #425
Closed

capture stdio during execution of a task #423

cpendery opened this issue Dec 22, 2023 · 2 comments · Fixed by #425

Comments

@cpendery
Copy link
Contributor

Would it be possible to have an API exposed where after the completion of a task, I receive any stdout or stderr that occurred during the task? I don't want to use forkOpts.stdio with inherit since I need to suppress / refine the task's output. It would be great to expose child/thread's stdout/stderr since there isn't support in NodeJS to capture it within the worker.

@josdejong
Copy link
Owner

I guess forkOpts.stdio (for child processes) or workerOpts (for worker threads) is the only option.

@josdejong
Copy link
Owner

Published now in v9.1.0, see #425.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants