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.
9 lines
197 B
PL/PgSQL
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;
|