79797641

Date: 2025-10-23 09:55:32
Score: 2
Natty:
Report link

https://github.com/ray-project/ray/blob/ray-2.48.0/python/ray/_raylet.pyx#L1852

Function execute_task is where a remote function finally get executed. You can see ray just wrap your normal function (none async function) with a async wrapper and execute inside asyncio event loop.

So ray does not preempt async tasks, it just treat sync function as a async function.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Haizhou Zhao