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