{% extends "base.html" %} {% block title %}{{ name }} 历史执行 — News Harvester{% endblock %} {% block content %}

{{ name }} · 历史执行详情

返回数据源详情
运行时间
{{ run.run_at }}
执行类型
{{ run.mode }}
结果状态
{{ '成功(部分交付)' if run.status == 'WARNING' else '成功' if run.status == 'SUCCESS' else '失败' if run.status == 'FAILED' else '旧版记录' if run.status == 'LEGACY' else run.status }}
Provider
{{ run.provider }}
耗时
{{ run.duration }}
{% if business_result %}

采集结果

成功 / 失败 / 目标
{{ business_result.succeeded_count }} / {{ business_result.failed_count }} / {{ business_result.requested_count }}
实际尝试
{{ business_result.attempted_count }}
{% for failure in business_result.failures %}

{{ failure.type }} · {{ failure.message }}{% if failure.url %}({{ failure.url }}){% endif %}

{% endfor %} {% for warning in business_result.warnings %}

提示:{{ warning }}

{% endfor %} {% if business_result.source_exhausted %}

已无更多新文章:{{ business_result.exhaustion_reason }}

{% endif %}
{% for article in business_result.articles %} {% set archive = article.archive if article.archive is defined else {} %} {% endfor %}
文章状态正文长度失败原因
{% if article.url.startswith('https://') or article.url.startswith('http://') %}{{ article.title or article.url }}{% else %}{{ article.title }}{% endif %}

归档:{{ article.archive_path or '未归档' }}

{{ '成功' if article.status == 'SUCCESS' else '失败' }} {% if archive.get('body_length') is not none %}{{ archive.body_length }} 字符{% elif article.body_length is defined %}{{ article.body_length }} 字符{% else %}—{% endif %} {{ article.failure_type or '—' }}{% if article.failure_reason %}
{{ article.failure_reason }}{% endif %}{% for evidence in article.quality_evidence %}{% if evidence != article.failure_reason %}
{{ evidence }}{% endif %}{% endfor %}
查看统一 JSON
{{ business_result | tojson(indent=2) }}
{% elif legacy_result is not none %}

采集结果

此记录使用旧版文本格式,未经过新版正文质量核验。

{{ legacy_result }}
{% else %}

采集结果

该记录不包含可展示的业务结果。

{% endif %}

运行元数据

总成本
${{ json_meta.cost }}
Turns
{{ json_meta.turns }}
API 耗时
{{ json_meta.duration_api }} ms
Terminal
{{ json_meta.terminal }}
{% if json_meta.permission_denials %}

权限拒绝 ({{ json_meta.permission_denials|length }} 次)

{{ json_meta.permission_denials | tojson(indent=2) }}
{% endif %}

来源: {{ run.filename }}

{% endblock %}