{#
  Run notification plain text email template

  Context variables:
    - job: Job object
    - run: Run object
    - status_info: Dict with title, user_message, action, color
    - run_url: URL to view run details
    - success_count: (optional) Number of successfully processed items
#}
{{ status_info.user_message }}

{{ status_info.action }}

View full details: {{ run_url }}

{% if run.status.name == "PARTIAL_SUCCESS" and run.errored_entries and run.total_entries %}
Summary:
- Successfully processed: {{ success_count }} items
- Failed to process: {{ run.errored_entries }} items

{% endif %}
---
Technical Details:
Status: {{ run.status.name }}
Run ID: {{ run.id }}
Job ID: {{ job.id }}
{% if run.started_at %}Started at: {{ run.started_at }}
{% endif %}{% if run.finished_at %}Finished at: {{ run.finished_at }}
{% endif %}{% if (run.status.name == "FAILED" or run.status.name == "PARTIAL_SUCCESS") and run.failed_subtasks %}Failed subtasks: {{ run.failed_subtasks }}/{{ run.total_subtasks }}
{% endif %}
{% if run.message %}
Error details:
{{ run.message }}
{% endif %}
