mirror of
https://github.com/clearml/clearml-server
synced 2025-04-29 18:31:51 +00:00
Fix ES issue with capital letters in index name
This commit is contained in:
parent
174f84514a
commit
2570bd9e26
@ -29,7 +29,7 @@ class QueueMetrics:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def _queue_metrics_prefix_for_company(company_id: str) -> str:
|
def _queue_metrics_prefix_for_company(company_id: str) -> str:
|
||||||
"""Returns the es index prefix for the company"""
|
"""Returns the es index prefix for the company"""
|
||||||
return f"queue_metrics_{company_id}_"
|
return f"queue_metrics_{company_id.lower()}_"
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _get_es_index_suffix():
|
def _get_es_index_suffix():
|
||||||
|
@ -20,7 +20,7 @@ class WorkerStats:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def worker_stats_prefix_for_company(company_id: str) -> str:
|
def worker_stats_prefix_for_company(company_id: str) -> str:
|
||||||
"""Returns the es index prefix for the company"""
|
"""Returns the es index prefix for the company"""
|
||||||
return f"worker_stats_{company_id}_"
|
return f"worker_stats_{company_id.lower()}_"
|
||||||
|
|
||||||
def _search_company_stats(self, company_id: str, es_req: dict) -> dict:
|
def _search_company_stats(self, company_id: str, es_req: dict) -> dict:
|
||||||
return self.es.search(
|
return self.es.search(
|
||||||
|
Loading…
Reference in New Issue
Block a user