summaryrefslogtreecommitdiff
path: root/src/buildstream/_scheduler/jobs/job.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2020-06-16 16:17:08 +0000
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2020-06-16 16:17:08 +0000
commit3774ce42263b947b211c6bb54aea85a00caa561e (patch)
tree5e689c7d7bad75dfa7b3b15a2f726131830573a1 /src/buildstream/_scheduler/jobs/job.py
parent0c14551de6ff5c84e1689d544f2d3ee073ac0a07 (diff)
parent5daa22ae6f60568849254274fdbf57bde5b919d8 (diff)
downloadbuildstream-3774ce42263b947b211c6bb54aea85a00caa561e.tar.gz
Merge branch 'tristan/nuke-pickle-jobber' into 'master'
Completely abolish job pickling. See merge request BuildStream/buildstream!1965
Diffstat (limited to 'src/buildstream/_scheduler/jobs/job.py')
-rw-r--r--src/buildstream/_scheduler/jobs/job.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/buildstream/_scheduler/jobs/job.py b/src/buildstream/_scheduler/jobs/job.py
index 23aa51e58..78a375fec 100644
--- a/src/buildstream/_scheduler/jobs/job.py
+++ b/src/buildstream/_scheduler/jobs/job.py
@@ -36,8 +36,6 @@ from ...types import FastEnum
from ... import _signals, utils
from .. import _multiprocessing
-from .jobpickler import pickle_child_job, do_pickled_child_job
-
# Return code values shutdown of job handling child processes
#
@@ -174,11 +172,7 @@ class Job:
self._message_element_key,
)
- if self._scheduler.context.platform.does_multiprocessing_start_require_pickling():
- pickled = pickle_child_job(child_job, self._scheduler.context.get_projects(),)
- self._process = _multiprocessing.AsyncioSafeProcess(target=do_pickled_child_job, args=[pickled, pipe_w],)
- else:
- self._process = _multiprocessing.AsyncioSafeProcess(target=child_job.child_action, args=[pipe_w],)
+ self._process = _multiprocessing.AsyncioSafeProcess(target=child_job.child_action, args=[pipe_w],)
# Block signals which are handled in the main process such that
# the child process does not inherit the parent's state, but the main