Record job success without deleting the job record
Previously, the records for jobs would be deleted. It's useful to know when jobs were inserted in to the database, as well as when they succeeded (if they have). This change also makes it possible to keep track of jobs that have failed, as they won't be deleted.
This commit is contained in:
parent
f03a750705
commit
4ccf3132b6
5 changed files with 44 additions and 8 deletions
12
sqitch/deploy/dates_to_load_new_guix_revision_jobs.sql
Normal file
12
sqitch/deploy/dates_to_load_new_guix_revision_jobs.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
-- Deploy guix-data-service:dates_to_load_new_guix_revision_jobs to pg
|
||||
-- requires: initial_import
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE load_new_guix_revision_jobs
|
||||
ADD COLUMN created_at timestamp without time zone DEFAULT clock_timestamp();
|
||||
|
||||
ALTER TABLE load_new_guix_revision_jobs
|
||||
ADD COLUMN succeeded_at timestamp without time zone;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Add table
Add a link
Reference in a new issue