Fixes #2186 Background job emails will no longer fail to send for jobs unrelated to file replication or replica deletion. Also uses `AnyJob` for paginated background job response model, to fix typing being out of data following addition of other types of background jobs and lower overhead for adding new ones moving forward.
28 lines
597 B
Plaintext
28 lines
597 B
Plaintext
Failed Background Job
|
|
~~~
|
|
Failed Background Job
|
|
---------------------
|
|
|
|
Organization: {{ org.name }} ({{ job.oid }})
|
|
Job type: {{ job.type }}
|
|
|
|
Job ID: {{ job.id }}
|
|
Started: {{ job.started.isoformat(sep=" ", timespec="seconds") }}Z
|
|
Finished: {{ finished.isoformat(sep=" ", timespec="seconds") }}Z
|
|
|
|
{% if job.object_type %}
|
|
Object type: {{ job.object_type }}
|
|
{% endif %}
|
|
|
|
{% if job.object_id %}
|
|
Object ID: {{ job.object_id }}
|
|
{% endif %}
|
|
|
|
{% if job.file_path %}
|
|
File path: {{ job.file_path }}
|
|
{% endif %}
|
|
|
|
{% if job.replica_storage %}
|
|
Replica storage name: {{ job.replica_storage.name }}
|
|
{% endif %}
|