summaryrefslogtreecommitdiff
path: root/distbuild/worker_build_scheduler.py
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-04-23 15:59:24 +0100
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-04-23 17:32:29 +0100
commit00e24f24bda5355823bcbf520616aad6482dfa2e (patch)
treefcb6605c0f7e0489d16391a988f142cf6349d59b /distbuild/worker_build_scheduler.py
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/worker_build_scheduler.py')
-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 5fb1166b..4df728bb 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()