{% if r.status == "running" %}RUNNING
{%- elif r.status == "completed" %}COMPLETED
{%- elif r.status == "completed_with_errors" %}COMPLETED WITH ERRORS
{%- elif r.status == "interrupted" %}INTERRUPTED
{%- elif r.status == "cancelled" %}CANCELLED
{%- else %}FAILED{% endif %}