Fix WorkflowExecution event ids not increasing
This commit is contained in:
parent
a137e5c5c9
commit
c72c198208
2 changed files with 10 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class WorkflowExecution(object):
|
|||
|
||||
def next_event_id(self):
|
||||
event_ids = [evt.event_id for evt in self._events]
|
||||
return max(event_ids or [0])
|
||||
return max(event_ids or [0]) + 1
|
||||
|
||||
def _add_event(self, *args, **kwargs):
|
||||
evt = HistoryEvent(self.next_event_id(), *args, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue