Associate a name with database connections
This helps when working out which connection to the database is doing what.
This commit is contained in:
parent
1b5db7adac
commit
743cec7cb6
14 changed files with 20 additions and 4 deletions
|
|
@ -29,6 +29,7 @@
|
|||
(guix-data-service branch-updated-emails))
|
||||
|
||||
(with-postgresql-connection
|
||||
"process-branch-updated-email"
|
||||
(lambda (conn)
|
||||
(enqueue-job-for-email
|
||||
conn
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
(setvbuf (current-error-port) 'line)
|
||||
|
||||
(with-postgresql-connection
|
||||
"process-jobs"
|
||||
(lambda (conn)
|
||||
(simple-format #t "Ready to process jobs...\n")
|
||||
(process-jobs conn)))
|
||||
|
|
|
|||
|
|
@ -25,4 +25,5 @@
|
|||
(squee)
|
||||
(guix-data-service builds))
|
||||
|
||||
(with-postgresql-connection query-build-servers)
|
||||
(with-postgresql-connection "query-build-servers"
|
||||
query-build-servers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue