{% macro display_task_results(results) %}

{{results['type']}}

{%for key,value in results['payload'].items()%} {%if key == 'failure_origin_task_id' and value%} {%elif key == 'traceback' %} {% else %} {% endif %} {%endfor%}
{{key}}{{value}}
    {% for tb in value %}
  1. {{tb}}
  2. {% endfor %}
{{value}}
{% endmacro%}