Fixed failing test
This commit is contained in:
parent
8cd275a54f
commit
65fa9e4834
|
@ -1278,10 +1278,11 @@ class ProcessInstanceProcessor:
|
||||||
task_data = [self.user_defined_task_data(task.data) for task in tasks_to_check]
|
task_data = [self.user_defined_task_data(task.data) for task in tasks_to_check]
|
||||||
task_data_to_check = list(filter(len, task_data))
|
task_data_to_check = list(filter(len, task_data))
|
||||||
|
|
||||||
if len(task_data_to_check) == 0:
|
try:
|
||||||
return
|
|
||||||
|
|
||||||
task_data_len = len(json.dumps(task_data_to_check))
|
task_data_len = len(json.dumps(task_data_to_check))
|
||||||
|
except Exception:
|
||||||
|
task_data_len = 0
|
||||||
|
|
||||||
task_data_limit = 1024**2
|
task_data_limit = 1024**2
|
||||||
|
|
||||||
if task_data_len > task_data_limit:
|
if task_data_len > task_data_limit:
|
||||||
|
|
Loading…
Reference in New Issue