OpenStack library for all concurrency-related code
Go to file
Matthew Treinish 55e06261aa
Add python_exec kwarg to processutils.execute()
This commit adds a new kwarg to the process_utils.execute() function to
specify the python executable to use when launching python to check
prlimits. This is necessary when processutils.execute() is called from
inside an API server running with uwsgi. In this case sys.executable is
uwsgi (because uwsgi links libpython.so and is actually the interpreter)
This doesn't work with the execute() function because it assumes the
cpython interpreter CLI is used for the arguments it uses to call the
prlimits module. To workaround this and enable API servers that may run
under uwsgi to use this those applications can simply pass in an
executable to use.

Longer term it might be better to migrate the prlimits usage to call
multiprocessing instead of subprocessing python. But that would require
a more significant rewrite of both processutils and prlimit to
facilitate that.

Change-Id: I0ae60f0b4cc3700c783f6018e837358f0e053a09
Closes-Bug: #1712463
2018-01-09 10:22:45 -05:00
doc/source switch from oslosphinx to openstackdocstheme 2017-07-11 13:49:58 -04:00
oslo_concurrency Add python_exec kwarg to processutils.execute() 2018-01-09 10:22:45 -05:00
releasenotes Add python_exec kwarg to processutils.execute() 2018-01-09 10:22:45 -05:00
.coveragerc Fix coverage configuration and execution 2015-10-05 17:01:16 -04:00
.gitignore Add reno for releasenotes management 2016-05-20 17:56:23 +03:00
.gitreview exported from oslo-incubator by graduate.sh 2014-08-07 22:26:50 +04:00
.mailmap exported from oslo-incubator by graduate.sh 2014-08-07 22:26:50 +04:00
.testr.conf Move out of the oslo namespace package 2014-11-14 17:17:25 -05:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:38 +00:00
HACKING.rst Update URLs in documents according to document migration 2017-07-12 22:22:54 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2014-08-07 22:26:50 +04:00
README.rst Update URLs in documents according to document migration 2017-07-12 22:22:54 +08:00
babel.cfg exported from oslo-incubator by graduate.sh 2014-08-07 22:26:50 +04:00
requirements.txt Updated from global requirements 2017-12-19 01:38:05 +00:00
setup.cfg Update URLs in documents according to document migration 2017-07-12 22:22:54 +08:00
setup.py Updated from global requirements 2017-03-03 00:02:48 +00:00
test-requirements.txt add bandit to pep8 job 2017-12-12 10:49:20 +08:00
tox.ini add bandit to pep8 job 2017-12-12 10:49:20 +08:00

README.rst

Team and repository tags

image

oslo.concurrency

Latest Version

Downloads

The oslo.concurrency library has utilities for safely running multi-thread, multi-process applications using locking mechanisms and for running external processes.