Daniel P. Berrange 2855b6e662 processutils: ensure on_completion callback is always called
If the subprocess.Popen.communicate method raises an exception,
the on_completion callback is never invoked. If a caller is
trying to use on_execute + on_completion to track lifecycle
of a process this creates a problem, as they cannot reliably
detect completion.

Conflicts:
        oslo_concurrency/processutils.py
        oslo_concurrency/tests/unit/test_processutils.py

Change-Id: I22b2d7bde8797276f7670bc289d915dab5122481
Closes-bug: #1470868
(cherry picked from commit ab78480659)
2015-08-03 00:45:16 -07:00
2015-01-09 15:38:48 -05:00
2014-08-07 22:27:31 +04:00
2014-12-10 08:31:04 -05:00
2015-04-06 14:58:23 +00:00
2014-12-02 17:03:55 +00:00
2014-12-10 08:31:04 -05:00
2015-07-13 15:02:06 +00:00
2015-03-11 19:51:58 +00:00

oslo.concurrency

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

Description
OpenStack library for all concurrency-related code
Readme 4.9 MiB
Languages
Python 100%