summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gear/client.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gear/client.py b/gear/client.py
index 8d35b03b..3cfe51bf 100644
--- a/gear/client.py
+++ b/gear/client.py
@@ -47,6 +47,8 @@ class theController():
print "Setting them as unbuilt"
self._map_build_graph(self.artifact, set_initial_state)
print "Setting them as unbuilt done"
+ # TODO: check cache before marking as started:
+ # http://stackoverflow.com/questions/9110593/asynchronous-requests-with-python-requests
self.build_started = True
def _map_build_graph(self, artifact, callback, components=[]):
@@ -206,6 +208,9 @@ class BuilderClient(gear.Client):
self.controller._mark_artifact_as_built(job.data[-1])
return job
+ # TODO: send different types of data? stdout, message...?
+ # same for workFail, to identify worker dissconection and build
+ # failures.
def handleWorkData(self, packet):
job = super(BuilderClient, self).handleWorkData(packet)
print job.data[-1].strip()