You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loop=asyncio.get_running_loop() # or get_event_loop(). This will get the loop in which the grpc.aio.Channel object was createdloop.run_until_complete(worker.work())
The text was updated successfully, but these errors were encountered:
Describe the bug
When running a
ZeebeWorker
usingasyncio.run
aRuntimeError
will be raised with the messageattached to a different event loop
.This happens in version 3.0.0rc3 after we removed the channel creation from the worker.
To Reproduce
pip install -U pyzeebe=3.0.0rc3
)Workarounds
Create the channel and worker in an async function:
Or use a loop:
The text was updated successfully, but these errors were encountered: