mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 10:56:48 +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,
|
||||
metric_variants: MetricVariants = None,
|
||||
) -> int:
|
||||
if check_empty_data(self.es, company_id, event_type):
|
||||
return 0
|
||||
|
||||
query, _ = self._get_initial_query_and_must(task_id, metric_variants)
|
||||
es_req = {
|
||||
"query": query,
|
||||
|
Loading…
Reference in New Issue
Block a user