Skip to content

Asyncio non-thread safe when debug is on #64

@AymenFJA

Description

@AymenFJA

This only shows when asyncflow even-loop is in debug mode, as a warning/error of something not best-practice.

Traceback (most recent call last):
  File "/home/aymen/ve/asyncflow-dragon/lib/python3.12/site-packages/radical/asyncflow/backends/execution/dragon.py", line 2892, in _wait_for_batch
    self._callback(task_desc, 'DONE')
  File "/home/aymen/ve/asyncflow-dragon/lib/python3.12/site-packages/radical/asyncflow/workflow_manager.py", line 1264, in task_callbacks
    self.handle_task_success(task_dct, task_fut)
  File "/home/aymen/ve/asyncflow-dragon/lib/python3.12/site-packages/radical/asyncflow/workflow_manager.py", line 1119, in handle_task_success
    task_fut.set_result(task["stdout"])
  File "/usr/lib/python3.12/asyncio/base_events.py", line 797, in call_soon
    self._check_thread()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 834, in _check_thread
    raise RuntimeError(
RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions