Skip to content

Commit db6261e

Browse files
committed
[IMP] runbot: do not display hosts with no recent builds (considered stopped)
1 parent 39d402c commit db6261e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

runbot/runbot.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,10 @@ def branch_info(branch):
12341234
'filters': filters,
12351235
})
12361236

1237-
for result in build_obj.read_group(cr, uid, [], ['host'], ['host']):
1237+
# consider host gone if no build in last 100
1238+
build_threshold = max(build_ids) - 100
1239+
1240+
for result in build_obj.read_group(cr, uid, [('id', '>', build_threshold)], ['host'], ['host']):
12381241
if result['host']:
12391242
context['host_stats'].append({
12401243
'host': result['host'],

0 commit comments

Comments
 (0)