guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: database: Remove useless query.


From: Mathieu Othacehe
Subject: branch master updated: database: Remove useless query.
Date: Wed, 28 Apr 2021 15:30:45 -0400

This is an automated email from the git hooks/post-receive script.

mothacehe pushed a commit to branch master
in repository guix-cuirass.

The following commit(s) were added to refs/heads/master by this push:
     new 6647456  database: Remove useless query.
6647456 is described below

commit 66474562e97545cddffa6a1f6d1fb4400e1ecbaf
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Wed Apr 28 21:30:05 2021 +0200

    database: Remove useless query.
    
    * src/cuirass/database.scm (db-update-build-status!): Remove the Jobs status
    update that is now done using a trigger.
---
 src/cuirass/database.scm | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/cuirass/database.scm b/src/cuirass/database.scm
index c7b5704..8193690 100644
--- a/src/cuirass/database.scm
+++ b/src/cuirass/database.scm
@@ -928,11 +928,7 @@ UPDATE Builds SET stoptime =" now
                                          (build-weather new-failure)))
                             (db-push-notification notif
                                                   (assq-ref build #:id))))
-                        notifications)))))
-    (exec-query/bind db
-                     "UPDATE Jobs SET status=" status
-                     "WHERE build = (SELECT id FROM Builds WHERE
- derivation = " drv ");")))
+                        notifications)))))))
 
 (define* (db-update-build-worker! drv worker)
   "Update the database so that DRV's worker is WORKER."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]