def executingTask(self, parentListener, taskname, taskargs): requestId = log_incoming_request( None, "executingTask", (parentListener, taskname, fromXPS(taskargs))) listener = _SparkExecutionListener(self.agent, parentListener) debug("creating listener %s with parent %s", listener, parentListener) log_outgoing_result(requestId, "result", listener) return listener
def callTaskSucceeded(listener, bindings): larguments = List(bindings) log_outgoing_result(listener, "success", larguments) listener.taskSucceeded(toXPS(larguments))
def callTaskFailed(listener, reason): log_outgoing_result(listener, "failure", reason) listener.taskFailed(reason)
def executingTask(self, parentListener, taskname, taskargs): requestId = log_incoming_request(None, "executingTask", (parentListener, taskname, fromXPS(taskargs))) listener = _SparkExecutionListener(self.agent, parentListener) debug("creating listener %s with parent %s", listener, parentListener) log_outgoing_result(requestId, "result", listener) return listener