From c699c11eea86dde9fe2ed88861832259710cefbe Mon Sep 17 00:00:00 2001 From: "Ivan A. Melnikov" Date: Sun, 29 Jul 2018 09:52:02 +0400 Subject: [PATCH] interactive: Consider only recycler's tasks for next_tasks --- port_stats/interactive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/port_stats/interactive.py b/port_stats/interactive.py index d52ae7f..09463a9 100644 --- a/port_stats/interactive.py +++ b/port_stats/interactive.py @@ -156,7 +156,8 @@ def _task_colors(info): def next_tasks(colors=frozenset(['ORANGE', 'YELLOW', 'EXTRA']), to=pager): tasks = _filtered_tasks(lambda t: t['state'] != 'DONE', - lambda t: _task_colors(t) & colors) + lambda t: _task_colors(t) & colors, + lambda t: t['owner'].startswith('recycler')) to("%s tasks\n\n%s" % (len(tasks), _format_ti(tasks)))