summaryrefslogtreecommitdiff
path: root/distbuild
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-04-23 14:59:24 (GMT)
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-04-23 16:32:29 (GMT)
commit00e24f24bda5355823bcbf520616aad6482dfa2e (patch)
treefcb6605c0f7e0489d16391a988f142cf6349d59b /distbuild
parenta479c52273f624afb475e59feabf7f1b977c8679 (diff)
downloadmorph-00e24f24bda5355823bcbf520616aad6482dfa2e.tar.gz
WorkerConnection: misc attributes
_job is the job this worker is carrying out _exec_response_msg will contain the response the worker sends back to us when it finishes the build.
Diffstat (limited to 'distbuild')
-rw-r--r--distbuild/worker_build_scheduler.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/distbuild/worker_build_scheduler.py b/distbuild/worker_build_scheduler.py
index 5fb1166..4df728b 100644
--- a/distbuild/worker_build_scheduler.py
+++ b/distbuild/worker_build_scheduler.py
@@ -282,6 +282,9 @@ class WorkerConnection(distbuild.StateMachine):
self._worker_cache_server_port = worker_cache_server_port
self._morph_instance = morph_instance
self._helper_id = None
+ self._job = None
+ self._exec_response_msg = None
+ self._debug_json = False
addr, port = self._conn.getpeername()
name = socket.getfqdn(addr)
@@ -290,6 +293,9 @@ class WorkerConnection(distbuild.StateMachine):
def name(self):
return self._worker_name
+ def job(self):
+ return self._job
+
def setup(self):
distbuild.crash_point()