Sometimes when using the fault_tolerant.identify_regions.insert_compound_child_task() function an exception is raised. This happens more often when entering code line by line than by pasting the code in a block. This doesn't consistently happen but has impeded carrying out the workflow.
The exception raised:
fault_tolerant.identify_regions.insert_compound_child_task()
Exception in thread Thread-61 (_process_streaming):
Traceback (most recent call last):
File "python\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "python\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "python\lib\site-packages\ansys\fluent\core\streaming_services\datamodel_event_streaming.py", line 70, in _process_streaming
cb1
File "python\lib\site-packages\ansys\fluent\core\workflow.py", line 1238, in refresh_after_sleep
_refresh_task_accessors(self)
File "python\lib\site-packages\ansys\fluent\core\workflow.py", line 118, in _refresh_task_accessors
_refresh_task_accessors(task)
File "python\lib\site-packages\ansys\fluent\core\workflow.py", line 94, in _refresh_task_accessors
tasks = obj.ordered_children(recompute=True)
File "python\lib\site-packages\ansys\fluent\core\workflow.py", line 252, in ordered_children
task_list = _convert_task_list_to_display_names(self._workflow, task_list)
File "python\lib\site-packages\ansys\fluent\core\workflow.py", line 123, in _convert_task_list_to_display_names
workflow_state = DataModelCache.get_state("workflow", workflow_root)
File "python\lib\site-packages\ansys\fluent\core\data_model_cache.py", line 309, in get_state
return copy.deepcopy(cache)
File "python\lib\copy.py", line 146, in deepcopy
y = copier(x, memo)
File "python\lib\copy.py", line 230, in _deepcopy_dict
for key, value in x.items():
RuntimeError: dictionary changed size during iteration
False
š Steps to reproduce
Enter the code from the function test_new_fault_tolerant_workflow under tests/test_new_meshing_workflow.py line by line
At some point at an instance of the line fault_tolerant.identify_regions.insert_compound_child_task() the above error will likely appear. In my testing, this happened at least once on every instance of the command I tried
š Before submitting the issue
š Description of the bug
Sometimes when using the fault_tolerant.identify_regions.insert_compound_child_task() function an exception is raised. This happens more often when entering code line by line than by pasting the code in a block. This doesn't consistently happen but has impeded carrying out the workflow.
The exception raised:
š Steps to reproduce
š» Which operating system are you using?
Windows
š Which ANSYS version are you using?
24.2
š Which Python version are you using?
3.10
š¦ Installed packages