Library for running OpenStack services
Go to file
Terry Wilson 9be8ebb96c Make signal handling order predictable
Due to the unordered nature of sets, it is possible for signal
handlers like _gracefull_shutdown() to run first and clear the
_signal_handlers before other registered handlers have run.

This patch converts _signal_handlers from a set to a list and
then runs the handlers LIFO similar to how atexit functions are
run. Given that the handlers added in service.py are added after
clearing the signal_handlers, they are guaranteed to be the first
in the list and the last run.

Change-Id: Ief3ab2f56fa3d805296709e12e5f7a71560f7b6e
Closes-Bug: #2057809
Related-Bug: #2056366
Signed-off-by: Terry Wilson <twilson@redhat.com>
(cherry picked from commit d026081ca4)
(cherry picked from commit 028809f769)
(cherry picked from commit daa2baa4b3)
2024-04-26 07:17:26 +00:00
doc remove unicode from code 2021-01-03 16:21:39 +08:00
oslo_service Make signal handling order predictable 2024-04-26 07:17:26 +00:00
releasenotes Imported Translations from Zanata 2022-09-10 04:32:42 +00:00
.coveragerc Update .coveragerc after the removal of respective directory 2016-10-18 17:45:44 +05:30
.gitignore Move doc related modules to doc/requirements.txt 2019-08-24 09:49:33 +08:00
.gitreview Update .gitreview for stable/2023.1 2023-02-24 15:23:32 +00:00
.mailmap exported from oslo-incubator by graduate.sh 2015-05-21 16:51:40 +03:00
.pre-commit-config.yaml Move flake8 as a pre-commit local target. 2021-03-23 13:09:41 +01:00
.stestr.conf Convert oslo.service to using stestr 2018-07-04 08:39:21 +07:00
.zuul.yaml Add Python3 antelope unit tests 2022-09-09 09:18:24 +00:00
CONTRIBUTING.rst Align contributing doc with oslo's policy 2020-05-05 14:31:05 +02:00
HACKING.rst Update hacking version 2019-02-13 17:08:38 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2015-05-21 16:51:40 +03:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-30 13:48:51 +08:00
requirements.txt [goal] Migrate testing to ubuntu focal 2020-08-04 01:24:08 +00:00
setup.cfg Drop python3.6/3.7 support in testing runtime 2022-05-05 16:05:26 +02:00
setup.py remove outdated header 2020-02-10 18:33:49 +01:00
test-requirements.txt Adding pre-commit 2020-09-08 14:26:37 +02:00
tox.ini Update TOX_CONSTRAINTS_FILE for stable/2023.1 2023-02-24 15:23:35 +00:00

README.rst

Team and repository tags

image

oslo.service -- Library for running OpenStack services

Latest Version

Downloads

oslo.service provides a framework for defining new long-running services using the patterns established by other OpenStack applications. It also includes utilities long-running applications might need for working with SSL or WSGI, performing periodic operations, interacting with systemd, etc.