Replies: 1 comment
-
|
pyzmq doesn't support subinterpreters yet, but that's not what's happening here. I don't know anything about InterpreterPoolExecutor or why it wouldn't work. But make sure you check Try this instead of foreground_task = asyncio.create_task(foreground_client())
await asyncio.gather(service_future, foreground_task)That way, if service_future exits with an error, you'll see it immediately, rather than waiting for the foreground task to finish (which it won't). Then I think you'll see: I would guess it's because these functions are defined in def run_background_service():
asyncio.run(whatever())
async def whatever():
passI'm not really sure what is required for InterpreterPoolExecutor to be able to run a function. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, py3.14 add InterpreterPoolExecutor, just want to know if pyzmq can run with the InterpreterPoolExecutor?
it can not works, but if change it to
with ProcessPoolExecutor() as executor:or
with ThreadPoolExecutor() as executor:it will works well, what's the problem?
Beta Was this translation helpful? Give feedback.
All reactions