{% if is_running %}

{% if dry_run %}dry-run{% else %}running{% endif %} — pid {{ pid }}, started {{ started_at }}

Sends SIGTERM; SIGKILL fallback after 30 seconds.

{% else %} {# FG-3: rag_mode select macro — included in each form so the chosen mode is submitted regardless of which button is pressed. Default comes from retrieval.default_mode (default_rag_mode in context). #} {% macro rag_mode_select() %} {% endmacro %}
{{ rag_mode_select() }}
{{ rag_mode_select() }}

"Run now" ingests + writes to vault + state DB. "Dry-run" only previews — no writes. Graph/hybrid modes require the [graph] extra.

{% endif %}