Merge "Calculate statsd metrics via ComponentRegistry"

This commit is contained in:
Zuul
2021-05-20 00:33:27 +00:00
committed by Gerrit Code Review
5 changed files with 121 additions and 35 deletions

View File

@@ -125,6 +125,16 @@ class SchedulerComponent(BaseComponent):
class ExecutorComponent(BaseComponent):
kind = "executor"
def __init__(self, client, hostname):
super().__init__(client, hostname)
self.initial_state = {
"accepting_work": False,
"zone": None,
"allow_unzoned": False,
"process_merge_jobs": False,
}
self.content.update(self.initial_state)
class MergerComponent(BaseComponent):
kind = "merger"