示例#1
0
文件: proxy.py 项目: xethorn/flowy
 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)
示例#2
0
文件: proxy.py 项目: xethorn/flowy
 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)
示例#3
0
文件: proxy.py 项目: xethorn/flowy
 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)