diff options
author | Christopher Baines <mail@cbaines.net> | 2020-11-09 19:43:26 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-11-09 19:43:26 +0000 |
commit | c3db17b612dcf1043421ab6fdf87ae3f022c80fe (patch) | |
tree | f35674de0154b290dec779c80906670707ba76bc /guix-build-coordinator/agent-messaging | |
parent | dd9572c745d0b40bd6f0ca0c5b6284bb342d5da6 (diff) | |
download | build-coordinator-c3db17b612dcf1043421ab6fdf87ae3f022c80fe.tar build-coordinator-c3db17b612dcf1043421ab6fdf87ae3f022c80fe.tar.gz |
Make hook processing a bit more efficient
Rather than polling the database every second, use some condition variables to
wake threads when there's probably an event.
Diffstat (limited to 'guix-build-coordinator/agent-messaging')
-rw-r--r-- | guix-build-coordinator/agent-messaging/http/server.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guix-build-coordinator/agent-messaging/http/server.scm b/guix-build-coordinator/agent-messaging/http/server.scm index 6d73a9d..3c83e4c 100644 --- a/guix-build-coordinator/agent-messaging/http/server.scm +++ b/guix-build-coordinator/agent-messaging/http/server.scm @@ -319,7 +319,7 @@ port. Also, the port used can be changed by passing the --port option.\n" (datastore-agent-for-build datastore uuid))) (if (authenticated? agent-id-for-build request) (begin - (handle-build-start-report datastore + (handle-build-start-report build-coordinator agent-id-for-build uuid) (render-json @@ -333,7 +333,7 @@ port. Also, the port used can be changed by passing the --port option.\n" (if (authenticated? agent-id-for-build request) (begin (handle-setup-failure-report - datastore + build-coordinator agent-id-for-build uuid (json-string->scm (utf8->string body))) ;; Trigger build allocation, so that the allocator can handle |