{% macro render_task_parts(task) %} {{ task.node.display_name }} {{ task.distributed_query.timestamp }} {{ task.distributed_query.not_before or 'immediately' }} {{ task.timestamp or '' }} {% if not status %} {%- if task.status == DistributedQueryTask.NEW -%} NEW {%- elif task.status == DistributedQueryTask.PENDING -%} PENDING {%- elif task.status == DistributedQueryTask.COMPLETE -%} COMPLETE {%- endif -%} {% endif %} {% endmacro %} {% if not status %}{% endif %} {% if columns %} {% for column in columns %} {% endfor %} {% else %} {% endif %} {% for task in tasks %} {# If we have any results, render a row per-result. Otherwise, we render a single row without them #} {% if task.results | length %} {% for result in task.results %} {{ render_task_parts(task) }} {% for column in columns %} {% endfor %} {% endfor %} {% else %} {{ render_task_parts(task) }} {% endif %} {% endfor %}
node created run after retrievedstatus{{ column }}
{{ result.columns[column] | render(column) }}
no results