{{ status_to_string(task.status) }} {{ task.project }}.{{ task.process.callback }} > {{ task.url }} {% if task.status in (2, 3, 4) %} ({{ task.lastcrawltime | format_date }} crawled ) {% else %} ({{ task.updatetime | format_date }} updated ) {% endif %}

taskid
{{ task.taskid }}
lastcrawltime
{{ task.lastcrawltime }} ({{ task.lastcrawltime | format_date }})
updatetime
{{ task.updatetime }} ({{ task.updatetime | format_date }})
{% if task.track and task.track.fetch %}
track.fetch {{ (task.track.fetch.time * 1000) | round(2) }}ms
{{ json.dumps(task.track.fetch, indent=2, ensure_ascii=False) }}
{% endif %} {% if task.track and task.track.process %}
track.process {% if task.track.process.follows %}+{{ task.track.process.follows | int }}{% endif %} {{ (task.track.process.time * 1000) | round(2) }}ms
{%- if task.track.process.exception != 'None' %}{{ task.track.process.exception }} {% endif -%} {%- if task.track.process.logs %}{{ task.track.process.logs or ''}} {% endif %}{{ json.dumps(task.track.process, indent=2, ensure_ascii=False) }}
{% endif %}
{%- set not_shown_keys = ('status', 'url', 'project', 'taskid', 'lastcrawltime', 'updatetime', 'track', ) %} {%- for key, value in task.items() if key not in not_shown_keys %}
{{ key }}
{{ json.dumps(value, indent=2, ensure_ascii=False) if value is mapping else value }}
{%- endfor %}
# if result and result.get('result'):
result
{{ json.dumps(result['result'], indent=2, ensure_ascii=False) }}
# endif