Skip to content

Commit

Permalink
- fix xpush to job level
Browse files Browse the repository at this point in the history
  • Loading branch information
maycuatroi committed Jul 2, 2023
1 parent e844f22 commit 5d5fe33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evoflow/operators/base_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __repr__(self):
return f"{self.__class__.__name__} {self.task_id}"

def xcom_push(self, key, value):
self.params[key] = value
self.job.params_pool[key] = value

def xcom_pull(self, key, **kwargs):
return self.params[key]
return self.job.params_pool[key]

0 comments on commit 5d5fe33

Please sign in to comment.