Skip to content

Commit

Permalink
revert: no need to do this anymore, cuebot handles calculation before…
Browse files Browse the repository at this point in the history
… inserting proc
  • Loading branch information
KernAttila committed Aug 26, 2023
1 parent 9eddb03 commit 1a93ca1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2661,7 +2661,7 @@ EXECUTE PROCEDURE trigger__before_insert_folder();
CREATE FUNCTION trigger__before_insert_proc()
RETURNS TRIGGER AS $body$
BEGIN
IF NEW.int_cores_reserved < 0 THEN
IF NEW.int_cores_reserved <= 0 THEN
RAISE EXCEPTION 'failed to allocate proc, tried to allocate 0 cores';
END IF;
RETURN NEW;
Expand Down

0 comments on commit 1a93ca1

Please sign in to comment.