Skip to content

Conversation

@e345
Copy link
Contributor

@e345 e345 commented Sep 22, 2025

When executing Docker commands via Python, such as docker kill -s HUP <container>, the process may hang because the command produces output that blocks the Python subprocess.

This change appends > /dev/null to Docker commands to discard any standard output, ensuring that Python can execute the command without waiting indefinitely.

Systemd commands remain unchanged, as they do not exhibit the same blocking behavior.

When executing Docker commands via Python, such as `docker kill -s HUP <container>`, the process may hang because the command produces output that blocks the Python subprocess.  

This change appends `> /dev/null` to Docker commands to discard any standard output, ensuring that Python can execute the command without waiting indefinitely.  

Systemd commands remain unchanged, as they do not exhibit the same blocking behavior.
Update action.py : Redirect Docker command output to prevent Python hang
@Aidaho12
Copy link
Member

Thanks again!

@Aidaho12 Aidaho12 merged commit 35bd366 into roxy-wi:master Sep 23, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants