Use triggers for all notifications on Builds table changes

This commit is contained in:
Eelco Dolstra
2015-07-08 12:05:32 +02:00
parent 89fb723ace
commit bbee81efae
4 changed files with 24 additions and 23 deletions

View File

@ -433,7 +433,6 @@ sub cancelBuilds($$) {
, starttime => $time
, stoptime => $time
});
$db->storage->dbh->do("notify builds_cancelled");
return $n;
});
}
@ -470,8 +469,6 @@ sub restartBuilds($$) {
# FIXME: Add this to the API.
# FIXME: clear the dependencies?
$db->resultset('FailedPaths')->search({ path => [ @paths ]})->delete;
$db->storage->dbh->do("notify builds_restarted");
});
return scalar(@buildIds);