From 5b0c6c1015a8b424be7d1695d7184f2505ad60c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Thu, 22 Aug 2019 14:43:49 +0200 Subject: casserver.py: Fix write operations with bst-artifact-server Allow gRPC communication in the bst-artifact-server main process. --- src/buildstream/_cas/casserver.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/buildstream/_cas/casserver.py b/src/buildstream/_cas/casserver.py index 5a4c2b7ac..1835d118e 100644 --- a/src/buildstream/_cas/casserver.py +++ b/src/buildstream/_cas/casserver.py @@ -60,6 +60,10 @@ def create_server(repo, *, enable_push, quota): cas = CASCache(os.path.abspath(repo), cache_quota=quota, protect_session_blobs=False) try: + # Allow gRPC communication in main process as bst-artifact-server + # doesn't use forked subprocesses. + cas.notify_fork_disabled() + artifactdir = os.path.join(os.path.abspath(repo), 'artifacts', 'refs') sourcedir = os.path.join(os.path.abspath(repo), 'source_protos') -- cgit v1.2.1