aboutsummaryrefslogtreecommitdiff
path: root/bin/evaluate.in
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2020-09-30 11:56:04 +0200
committerMathieu Othacehe <othacehe@gnu.org>2020-10-01 18:33:13 +0200
commit39db021afdb48d0a08a3d8c17eff802af51fefbf (patch)
treec704f816e47414a9393d0fdf371e38aaa3aabc45 /bin/evaluate.in
parentce624ea72016d8e41a09798f91570fbf8ee74433 (diff)
downloadcuirass-39db021afdb48d0a08a3d8c17eff802af51fefbf.tar
cuirass-39db021afdb48d0a08a3d8c17eff802af51fefbf.tar.gz
Add evaluation database workers.
Evaluation registration involves running a large number of SQL queries. This can cause some database worker starvation as well as some contention. To avoid this issue, spawn database workers dedicated to evaluation registration. * src/cuirass/database.scm (%db-registration-channel): New variable. (with-db-registration-worker-thread, with-registration-workers): New macros. (with-db-worker-thread-no-timeout): Remove it. (db-register-builds): Run registration in dedicated database workers using "with-db-registration-worker-thread" macro. * bin/cuirass.in (main): Spawn database registration workers by calling "with-registration-workers" macro.
Diffstat (limited to 'bin/evaluate.in')
0 files changed, 0 insertions, 0 deletions