Connecting redmine issue http://projects.theforeman.org/issues/14650 from this bug
Upstream bug component is Tasks Plugin
Something like this would also be useful. See states of tasks in running or pending hammer task list | egrep -i "\| running" 8e2845ce-035e-4f11-bd7b-8a8d3386e1b6 | | | 2016/11/01 15:23:43 | | running | pending | Listen on candlepin events | --> Currently no option to do otherwise ####################################### # hammer task list --help Usage: hammer task list [OPTIONS] Options: --by BY Field to sort the results on --order ORDER Sort field and order, e.g. 'name DESC' --page PAGE Page number, starting at 1 --per-page PER_PAGE Number of results per page to return --search SEARCH Search string -h, --help print help [root@jnik source]# ##########################################
(In reply to jnikolak from comment #4) Searching by task states and results can be done like this: # hammer task list --search "state = running and result = pending"
We should get this for free when BZ1417130[1] gets fixed. Keeping this one open to track the hammer part of things in case some more changes are needed. [1] - https://bugzilla.redhat.com/show_bug.cgi?id=1417130