Merge "Store pool name in component registry"

This commit is contained in:
Zuul 2024-07-08 14:41:04 +00:00 committed by Gerrit Code Review
commit d135cc4215
3 changed files with 3 additions and 0 deletions

View File

@ -472,6 +472,7 @@ class PoolWorker(threading.Thread, stats.StatsReporter):
pool_config = self.getPoolConfig()
self.component_info.content.update({
'id': self.launcher_id,
'name': self.pool_name,
'provider_name': self.provider_name,
'supported_labels': list(pool_config.labels),
'state': self.component_info.RUNNING,

View File

@ -36,6 +36,7 @@ class TestComponentRegistry(tests.DBTestCase):
version=get_version_string())
launcher.content.update({
'id': "launcher-Poolworker.provider-main-" + uuid.uuid4().hex,
'name': 'main',
'provider_name': 'provider',
'supported_labels': [],
'state': launcher.RUNNING,

View File

@ -199,6 +199,7 @@ class PoolComponent(BaseComponent):
super().__init__(*args, **kwargs)
self.initial_state = {
"id": None,
"name": None,
"provider_name": None,
"supported_labels": [],
"priority": 100,