Notify the queue runner when a build is deleted
[?]
Jul 8, 2015, 9:43 AM
RVHBV3B3RA3QTPQFCTICFFG5QGRUZ7EGXZNR4W2MOM2HPBHPZV7ACDependencies
- [2]
GKZN4UV7Make the queue monitor more robust, and better debug output - [3]
ATJ54SPXUse PostgreSQL notifications for queue events - [*]
24BMQDZAStart of single-process hydra-queue-runner - [*]
N22GPKYT* Put info about logs / build products in the DB. - [*]
PHX2HIVG* Store info about the build inputs in the build record. - [*]
CLJQCY2X* Store info about all the build actions and allow them to be - [*]
D5QIOJGP* Move everything up one directory.
Change contents
- edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 209
receiver buildsDeleted(*conn, "builds_deleted"); - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 229
if (buildsCancelled.get()) {if (buildsCancelled.get() || buildsDeleted.get()) { - edit in src/sql/hydra.sql at line 203
#ifdef POSTGRESQLcreate function notifyBuildDeleted() returns trigger as $$beginexecute 'notify builds_deleted';return null;end;$$ language plpgsql;create trigger BuildDeleted after delete on Buildsfor each rowexecute procedure notifyBuildDeleted();#endif - file addition: upgrade-35.sql[9.3004]
create function notifyBuildDeleted() returns trigger as $$beginexecute 'notify builds_deleted';return null;end;$$ language plpgsql;create trigger BuildDeleted after delete on Buildsfor each rowexecute procedure notifyBuildDeleted();