Project

Profile

Help

Story #2028

closed

View the state ("active", "inactive", etc.) of various pulp processes via the status API

Added by dalley almost 8 years ago. Updated almost 4 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

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": "",
"_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": "",
"_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"
},
...
]

Also available in: Atom PDF