2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/data-service.git synced 2023-12-14 03:23:03 +01:00
data-service/sqitch/deploy/add_retry_value_to_job_event_enum.sql
Christopher Baines 427063c812 Make it easier to retry jobs
Add a new event 'retry', and run jobs where the number of retry events is
greater or equal to the number of failure events.

Also add an index to the git_branches table to make the finding jobs query a
bit faster.
2019-10-02 21:54:11 +01:00

6 lines
193 B
SQL

-- Deploy guix-data-service:add_retry_value_to_job_event_enum to pg
ALTER TYPE job_event ADD VALUE 'retry';
CREATE INDEX git_branches_name_and_datetime ON git_branches (name, datetime DESC);