def _get_task_inbound_context(self, task_spec): upstream_task_execs = self._get_upstream_task_executions(task_spec) return u.merge_dicts( copy.deepcopy(self.wf_ex.context), data_flow.evaluate_upstream_context(upstream_task_execs) )
def _get_task_inbound_context(self, task_spec): upstream_task_execs = self._get_upstream_task_executions(task_spec) upstream_ctx = data_flow.evaluate_upstream_context(upstream_task_execs) ctx = u.merge_dicts(copy.deepcopy(self.wf_ex.context), upstream_ctx) if self.wf_ex.context: ctx['__env'] = u.merge_dicts( copy.deepcopy(upstream_ctx.get('__env', {})), copy.deepcopy(self.wf_ex.context.get('__env', {}))) return ctx
def get_task_inbound_context(self, task_spec): # TODO(rakhmerov): This method should also be able to work with task_ex # to cover 'split' (aka 'merge') use case. upstream_task_execs = self._get_upstream_task_executions(task_spec) upstream_ctx = data_flow.evaluate_upstream_context(upstream_task_execs) ctx = u.merge_dicts(copy.deepcopy(self.wf_ex.context), upstream_ctx) if self.wf_ex.context: ctx['__env'] = u.merge_dicts( copy.deepcopy(upstream_ctx.get('__env', {})), copy.deepcopy(self.wf_ex.context.get('__env', {}))) return ctx
def _get_task_inbound_context(self, task_spec): upstream_task_execs = self._get_upstream_task_executions(task_spec) upstream_ctx = data_flow.evaluate_upstream_context(upstream_task_execs) ctx = u.merge_dicts( copy.deepcopy(self.wf_ex.context), upstream_ctx ) if self.wf_ex.context: ctx['__env'] = u.merge_dicts( copy.deepcopy(upstream_ctx.get('__env', {})), copy.deepcopy(self.wf_ex.context.get('__env', {})) ) return ctx
def get_task_inbound_context(self, task_spec): # TODO(rakhmerov): This method should also be able to work with task_ex # to cover 'split' (aka 'merge') use case. upstream_task_execs = self._get_upstream_task_executions(task_spec) return data_flow.evaluate_upstream_context(upstream_task_execs)
def _get_task_inbound_context(self, task_spec): upstream_task_execs = self._get_upstream_task_executions(task_spec) return u.merge_dicts( copy.copy(self.wf_ex.context), data_flow.evaluate_upstream_context(upstream_task_execs))
def get_task_inbound_context(self, task_spec): # TODO(rakhmerov): This method should also be able to work with task_ex # to cover 'split' (aka 'merge') use case. upstream_task_execs = self._get_upstream_task_executions(task_spec) return data_flow.evaluate_upstream_context(upstream_task_execs)