{% extends "base.html" %} {% block title %}调度中心 — News Harvester{% endblock %} {% block extra_head %} {% endblock %} {% block content %}
每源一行:24 小时时间轴上标出全部触发时刻(●), 黄色高亮为下次触发,红色竖线为当前时刻,按下次触发排序。 每日汇总 digest:{{ digest_times|join(', ') if digest_times else '未排' }}{% if digest_next %},下次 {{ digest_next.strftime('%m-%d %H:%M') }}{% endif %}。 时间格式 HH:MM,多个用逗号分隔(如 09:00,14:30);删除仅移除调度,技能源与历史保留。
{% with messages = get_flashed_messages() %} {% if messages %}{% for m in messages %}| 栏目 | 24h 时间轴 | 定时 | 下次触发 | 上次运行 | 操作 |
|---|---|---|---|---|---|
{{ r.name }}{% if r.display and r.display != r.name %} {{ r.display }}{% endif %}{% if r.state == 'active' %}调度中 {% elif r.state == 'disabled' %}已禁用 {% else %}未排程{% endif %} {% if not r.enabled %}技能停用{% endif %} |
{% if r.times %}
{% for t in r.times %}
{% set h = t.split(':')[0]|int %}{% set m = t.split(':')[1]|int %}
{% set pct = ((h*60+m)/1440*100)|round(2) %}
{% endfor %}
{% else %}
— 未排程 —
{% endif %}
|
{{ r.times|join(', ') if r.times else '—' }} |
{% if r.next_in_min is not none %}
{{ r.next }} {{ r.next_in_min }} 分钟后 {% else %}—{% endif %} |
{% if r.last %}
{{ r.last.mtime }} {% if '成功' in (r.last.status or '') %}{{ r.last.status }} {% elif r.last.status %}{{ r.last.status }}{% endif %} {% else %}从未{% endif %} |
{% if r.state != 'none' %} {% endif %} |