guix-data-service/sqitch/deploy/build_background_processing_queue.sql
Christopher Baines 961441cab0 Reliably perform the background processing for build events
Insert the build ids to a table and remove the ids once processed. If the data
service is restarted and the in memory queue is lost, process all the items
from the database queue.
2025-05-25 13:08:27 +01:00

9 lines
197 B
PL/PgSQL

-- Deploy guix-data-service:build_background_processing_queue to pg
BEGIN;
CREATE TABLE build_background_processing_queue (
build_id integer PRIMARY KEY REFERENCES builds (id)
);
COMMIT;