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

Added support for timeout, encoding and logging to iexe_cmd() #334

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

mambelli
Copy link
Contributor

Clarified also the documentation, e.g. adding the default encoding (utf-8) and exceptions raised

@mambelli mambelli force-pushed the v310/subprocess_improvements branch from a2d46f8 to e7ecd9e Compare August 23, 2023 19:25
Comment on lines +109 to +114
err_str = "Timeout running '{}'\nStdout:{}\nStderr:{}\nException subprocess.TimeoutExpired:{}".format(
cmd,
stdoutdata,
stderrdata,
e,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use an fString (f"") here instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was done by the autoformatter to shorten the line (<120)

Copy link
Contributor

@BrunoCoimbra BrunoCoimbra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a change suggestion but found no show-stoppers. Good to go!

@mambelli mambelli merged commit a104407 into glideinWMS:master Aug 25, 2023
8 checks passed
@mambelli mambelli deleted the v310/subprocess_improvements branch August 25, 2023 18:36
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