SELECT
'job-created' AS type,
jobs.created_at AS t,
- 3 AS priority,
+ 1 AS priority,
jobs.build_id AS build,
NULL AS by_build,
NULL AS build_comment,
jobs.deleted_at IS NULL
AND
jobs.started_at IS NOT NULL
+
+ UNION ALL
+
+ -- Retried jobs
+ SELECT
+ 'job-retry' AS type,
+ jobs.created_at AS t,
+ 4 AS priority,
+ jobs.build_id AS build,
+ NULL AS by_build,
+ NULL AS build_comment,
+ jobs.id AS job,
+ NULL AS user,
+ NULL AS by_user,
+ NULL AS builder,
+ NULL AS repository
+ FROM
+ jobs
+ JOIN
+ jobs superseeded_jobs ON superseeded_jobs.superseeded_by = jobs.id
+ WHERE
+ jobs.deleted_at IS NULL
)
"""
<p class="icon is-large has-text-info">
<i class="fa-solid fa-2x fa-gear"></i>
</p>
+ {% elif event.type == "job-retry" %}
+ <p class="icon is-large has-text-info">
+ <i class="fa-solid fa-2x fa-arrow-rotate-left"></i>
+ </p>
{% elif event.type == "build-finished" %}
<p class="icon is-large has-text-success">
<i class="fa-solid fa-2x fa-check-double"></i>
{{ _("Job Aborted") }}
{% elif event.type == "job-dispatched" %}
{{ _("Job Dispatched") }}
+ {% elif event.type == "job-retry" %}
+ {{ _("Job Restarted") }}
{% elif event.type == "repository-build-added" %}
{{ _("Build has been added to repository %s") % event.repository }}
{% elif event.type == "repository-build-removed" %}