Story #2028
closedView the state ("active", "inactive", etc.) of various pulp processes via the status API
0%
Description
It would be useful to have an "active" or "status" field for certain types of workers returned through the status API. This would enable easy visual discrimination between an active and inactive celerybeat process or resource manager, as several may be running while only one actively participates
Only pulp_resource_manager and pulp_celerybeat should have this field. There is no concept of "active" or "inactive" for pulp_worker processes.
Current API response¶
"known_workers": [
... {
"_id": "resource_manager@dalley-pulp-ha-testing1.os1.phx2.redhat.com",
"_ns": "workers",
"last_heartbeat": "2016-06-20T15:18:06Z"
}, {
"_id": "reserved_resource_worker-0@dev",
"_ns": "workers",
"last_heartbeat": "2016-06-21T18:58:18Z"
},
...
]
Desired API response¶
"known_workers": [
... {
"_id": "resource_manager@dalley-pulp-ha-testing1.os1.phx2.redhat.com",
"_ns": "workers",
"last_heartbeat": "2016-06-20T15:18:06Z",
"status": "inactive"
}, {
"_id": "reserved_resource_worker-0@dev",
"_ns": "workers",
"last_heartbeat": "2016-06-21T18:58:18Z"
},
...
]