delete tasks that do not have an end time when restting a process instance

This commit is contained in:
jasquat 2023-04-06 14:10:51 -04:00
parent 6036f8241f
commit 98b30d4a34
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1302,7 +1302,7 @@ class ProcessInstanceProcessor:
and_(
or_(
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.guid.not_in(task_models_of_parent_bpmn_processes_guids), # type: ignore