honor refusals

This commit is contained in:
Mike McLean 2023-05-07 20:36:02 -04:00 committed by Tomas Kopecek
parent fba5abe2ed
commit b2037c1da0
2 changed files with 34 additions and 7 deletions

View file

@ -1034,7 +1034,8 @@ CREATE TABLE scheduler_task_refusals (
by_host BOOLEAN NOT NULL,
soft BOOLEAN NOT NULL DEFAULT FALSE,
msg TEXT,
time TIMESTAMPTZ NOT NULL DEFAULT NOW()
time TIMESTAMPTZ NOT NULL DEFAULT NOW(),
UNIQUE (task_id, host_id)
) WITHOUT OIDS;