Expose workers by language
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user