Fixed failing test

This commit is contained in:
Jon Herron 2023-01-13 11:11:12 -05:00
parent 8cd275a54f
commit 65fa9e4834
1 changed files with 4 additions and 3 deletions

View File

@ -1278,10 +1278,11 @@ class ProcessInstanceProcessor:
task_data = [self.user_defined_task_data(task.data) for task in tasks_to_check]
task_data_to_check = list(filter(len, task_data))
if len(task_data_to_check) == 0:
return
try:
task_data_len = len(json.dumps(task_data_to_check))
except Exception:
task_data_len = 0
task_data_limit = 1024**2
if task_data_len > task_data_limit: