delete tasks that do not have an end time when restting a process instance
This commit is contained in:
parent
6036f8241f
commit
98b30d4a34
|
@ -1302,7 +1302,7 @@ class ProcessInstanceProcessor:
|
||||||
and_(
|
and_(
|
||||||
or_(
|
or_(
|
||||||
TaskModel.end_in_seconds > to_task_model.end_in_seconds,
|
TaskModel.end_in_seconds > to_task_model.end_in_seconds,
|
||||||
TaskModel.end_in_seconds.is_not(None), # type: ignore
|
TaskModel.end_in_seconds.is_(None), # type: ignore
|
||||||
),
|
),
|
||||||
TaskModel.process_instance_id == process_instance.id,
|
TaskModel.process_instance_id == process_instance.id,
|
||||||
TaskModel.guid.not_in(task_models_of_parent_bpmn_processes_guids), # type: ignore
|
TaskModel.guid.not_in(task_models_of_parent_bpmn_processes_guids), # type: ignore
|
||||||
|
|
Loading…
Reference in New Issue