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

bug #325: Fix print output in @at_cleanup functions not appearing in node console #343

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

scroix
Copy link
Member

@scroix scroix commented Oct 7, 2024

As described in #325 print messages aren't redirected to the Nodel console during clean-up.

The issue appears to be that when the cleanup function(s) are triggered, the Python interpreter's system state isn't set correctly, and subsequently sys.stdout and sys.stderr redirects aren't established.

This PR does the most obvious thing and (1) resets the interpreter's state and (2) assigns the output streams to the node's console before running through the list of clean-up functions provided by a node.

2024-10-07_8PrPbcLW

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

Successfully merging this pull request may close these issues.

1 participant