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

Reduce number of subprocess calls #39

Closed
x00Pavel opened this issue Oct 4, 2021 · 2 comments
Closed

Reduce number of subprocess calls #39

x00Pavel opened this issue Oct 4, 2021 · 2 comments

Comments

@x00Pavel
Copy link
Member

x00Pavel commented Oct 4, 2021

Calling subprocess for any bash command is mostly inefficient when there is pythonic way/module to do same operation. That would be good from performance point of view to reduce number of subprocess calls. For example, for operation with packages there is rpm python module that can be used for quivering over RPM database, installing/upgrading packages; restarting systemd services can be done by direct signal to bus from dbus python module

@x00Pavel
Copy link
Member Author

Communication with RPM db and dbus of the system is not worth implementing, calling corresponding commands from the subprocess seems to be a more easy way. But what can be reduced, is communicating with IPA server via its Python API

@x00Pavel
Copy link
Member Author

x00Pavel commented Jun 1, 2022

Resolving in new version

@x00Pavel x00Pavel closed this as completed Jun 1, 2022
@x00Pavel x00Pavel closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2022
@x00Pavel x00Pavel reopened this Jun 1, 2022
@x00Pavel x00Pavel closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2022
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

No branches or pull requests

1 participant