undo much of our performance improvement, though hopefully using children will be more precise

This commit is contained in:
burnettk 2023-03-10 18:17:25 -05:00
parent fede07321b
commit 9f291d4fc3
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View File

@ -42,7 +42,6 @@ desktop3.sme@status.im,196
desktop4.sme@status.im,197 desktop4.sme@status.im,197
desktop5.sme@status.im,198 desktop5.sme@status.im,198
fin@status.im,118 fin@status.im,118
finance.lead@status.im,128
finance_user1@status.im finance_user1@status.im
fluffy.project-lead@status.im,162 fluffy.project-lead@status.im,162
harmeet@status.im,109 harmeet@status.im,109

View File

@ -95,8 +95,13 @@ class TaskModelSavingDelegate(EngineStepDelegate):
db.session.commit() db.session.commit()
def after_engine_steps(self, bpmn_process_instance: BpmnWorkflow) -> None: def after_engine_steps(self, bpmn_process_instance: BpmnWorkflow) -> None:
# excludes FUTURE and COMPLETED. the others were required to get PP1 to go to completion.
for waiting_spiff_task in bpmn_process_instance.get_tasks( for waiting_spiff_task in bpmn_process_instance.get_tasks(
TaskState.WAITING | TaskState.CANCELLED | TaskState.READY TaskState.WAITING
| TaskState.CANCELLED
| TaskState.READY
| TaskState.MAYBE
| TaskState.LIKELY
): ):
task_model = TaskModel.query.filter_by( task_model = TaskModel.query.filter_by(
guid=str(waiting_spiff_task.id) guid=str(waiting_spiff_task.id)