do not write spiff step details to see how that changes performance

This commit is contained in:
jasquat 2023-03-14 10:51:12 -04:00
parent 2b727c9a63
commit fe4694729c
No known key found for this signature in database
1 changed files with 12 additions and 10 deletions

View File

@ -1661,17 +1661,19 @@ class ProcessInstanceProcessor:
) -> None:
"""Do_engine_steps."""
def spiff_step_details_mapping_builder(
task: SpiffTask, start: float, end: float
) -> dict:
self._script_engine.environment.revise_state_with_task_data(task)
return self.spiff_step_details_mapping(task, start, end)
step_delegate = StepDetailLoggingDelegate(
self.increment_spiff_step, spiff_step_details_mapping_builder
)
# NOTE: Commenting out to test how this changes performance:
# def spiff_step_details_mapping_builder(
# task: SpiffTask, start: float, end: float
# ) -> dict:
# self._script_engine.environment.revise_state_with_task_data(task)
# return self.spiff_step_details_mapping(task, start, end)
#
# step_delegate = StepDetailLoggingDelegate(
# self.increment_spiff_step, spiff_step_details_mapping_builder
# )
task_model_delegate = TaskModelSavingDelegate(
secondary_engine_step_delegate=step_delegate,
# secondary_engine_step_delegate=step_delegate,
secondary_engine_step_delegate=None,
serializer=self._serializer,
process_instance=self.process_instance_model,
)