Michal Arbet 5369e1ed7e Fix queue_manager in a containerized environment
This patch fixes the operation of queue_manager in a
containerized environment by adding an additional check
on the start_time in ticks since boot.
This way, we can detect a restart even when the PID remains
unchanged as it is ussual in containers, but the start_time is
different.

[1] https://www.man7.org/linux/man-pages//man5/proc_pid_stat.5.html

From man page above:

(22) starttime  %llu
    The time the process started after system boot.
    Before Linux 2.6, this value was expressed in
    jiffies.  Since Linux 2.6, the value is expressed
    in clock ticks (divide by sysconf(_SC_CLK_TCK)).

Closes-Bug: #2078935
Change-Id: I9e22433ec039ad6783593d9cb7fbe22c9090534e
(cherry picked from commit 6790f702fa5a56c9d25a4becba670bf1810a4162)
(cherry picked from commit 09f808f5383b7deff22a6f8a90ed21fda746f243)
2024-10-15 01:36:40 +00:00
2015-09-24 18:11:22 +08:00
2024-03-08 14:22:41 +00:00
2024-01-26 01:10:57 +09:00
2018-07-04 08:33:49 +07:00
2024-01-23 13:01:18 +09:00
2024-01-23 13:23:08 +00:00
2020-02-10 18:33:15 +01:00
2024-01-25 12:20:39 +09:00

Team and repository tags

image

Oslo Messaging Library

Latest Version

Downloads

The Oslo messaging API supports RPC and notifications over a number of different messaging transports.

Description
OpenStack library for messaging
Readme 36 MiB
Languages
Python 99.8%
Shell 0.2%