Skip to content

Commit 245504f

Browse files
committed
only process docs with build_type
1 parent be867a0 commit 245504f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

es_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ def set_avg_externals_build_stats(arch="*", lastNdays=60, extra_query=""):
520520
fields.append("%s_%s" % (s, k))
521521
fields = fields + ["time", "num_fds", "num_threads", "processes"]
522522
req_fields = fields + ["name", "build_jobs", "architecture", "build_type"]
523+
extra_query = "%s AND (_exists_:build_type.keyword)" % extra_query
523524
items = getExternalsESstats(
524525
arch=arch, lastNdays=lastNdays, fields=req_fields, extra_query=extra_query
525526
)
@@ -589,7 +590,7 @@ def set_avg_externals_build_stats(arch="*", lastNdays=60, extra_query=""):
589590
es_index, "_doc", index_sha, json.dumps(all_data[btype][arch][name])
590591
)
591592
except Exception as e:
592-
print(str(e))
593+
print("ERROR:", e)
593594
return
594595

595596

0 commit comments

Comments
 (0)