Fix WorkflowExecution event ids not increasing

This commit is contained in:
Jean-Baptiste Barth 2015-10-12 08:38:14 +02:00
commit c72c198208
2 changed files with 10 additions and 1 deletions

View file

@ -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)