mirror of
https://github.com/clearml/clearml-server
synced 2025-02-07 13:33:42 +00:00
Fix internal error on count task events if there is no events index
This commit is contained in:
parent
d146127c18
commit
2350ac64ed
@ -67,6 +67,9 @@ class EventsIterator:
|
|||||||
task_id: str,
|
task_id: str,
|
||||||
metric_variants: MetricVariants = None,
|
metric_variants: MetricVariants = None,
|
||||||
) -> int:
|
) -> int:
|
||||||
|
if check_empty_data(self.es, company_id, event_type):
|
||||||
|
return 0
|
||||||
|
|
||||||
query, _ = self._get_initial_query_and_must(task_id, metric_variants)
|
query, _ = self._get_initial_query_and_must(task_id, metric_variants)
|
||||||
es_req = {
|
es_req = {
|
||||||
"query": query,
|
"query": query,
|
||||||
|
Loading…
Reference in New Issue
Block a user