Expose workers by language

This commit is contained in:
Charles Care
2020-02-11 13:00:45 +00:00
committed by GitHub
parent fc2c0bec14
commit c9e953d3e8

View File

@@ -204,8 +204,14 @@ module Pipeline::Rpc
end
end
end
workers_by_lang = {}
deployed_versions.each do |lang,_|
wildcard_workers = workers_by_topic["*"]
specific_workers = workers_by_topic[lang]
workers_by_lang[lang] = wildcard_workers + specific_workers
end
status[worker_class] = {
_workers_by_topic: workers_by_topic,
_workers_by_lang: workers_by_lang,
online_workers: worker_ids,
deployed_versions: deployed_versions
}