def __call__(self, decision, history, tracer): th = TaskHistory(history, self.identity) wd = WorkflowDecision(decision, self.identity, self.f) if tracer is None: return Proxy(th, wd) return TracingProxy(tracer, self.identity, th, wd)
def __call__(self, decision, execution_history, rate_limit): """Instantiate Proxy.""" task_exec_hist = SWFTaskExecutionHistory(execution_history, self.identity) task_decision = SWFWorkflowTaskDecision(decision, execution_history, self, rate_limit) return Proxy(task_exec_hist, task_decision, self.retry, self.serialize_input, self.deserialize_result)
def __call__(self, decision, history, tracer): th = TaskHistory(history, self.identity) ad = ActivityDecision(decision, self.identity, self.f) if tracer is None: return Proxy(th, ad) return TracingProxy(tracer, self.identity, th, ad)