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

Have max_logs able to be set from env variable with a default value of 10 #1570

Open
msaldivar opened this issue Nov 7, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@msaldivar
Copy link

How would this feature be useful?
Executing more than 10 python scripts (cicd jobs) concurrently will lead to pipx failing

Describe the solution you'd like
The current default value to max_logs is 10, this solution involves reading from an environment variable, MAX_PIPX_LOGS. If the variable is not present the current values is set to 10.

max_logs = int(os.getenv("MAX_PIPX_LOGS", 10))

Describe alternatives you've considered
Possibly allowing the value to be set by cmdline arg, however an environment variable is simpler for automated environments.

@dukecat0 dukecat0 added the enhancement New feature or request label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants