-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
pyzeebe 2.4.0 to 3.0.0 Trouble #239
Comments
@seb-835 Can you post the full stack trace / output with the error? Also, what version of Python are you running? |
Hi, File "/src/worker.py", line 55, in i can make a pastebin of the code, there is no secret in. |
@seb-835 Hmm, I don't immediatly see the issue. From the error, it could be something related to what's reported here: https://stackoverflow.com/questions/58774718/asyncio-in-corroutine-runtimeerror-no-running-event-loop But I don't see how that translates to Pyzeebe. If you follow the quickstart, does that work? It would be most helpful if you can create a minimal reproducer. |
I think I got around this issue by using |
One of the workaround give by @Andy-JB work, if i replace loop = asyncio.get_running_loop() by loop = asyncio.get_event_loop() with loop = asyncio.new_event_loop(), it crash :
@kbakk i got a minimal code reproducer if you need, |
See https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop:
See description here for an example of how to use Can you test this, @seb-835? Feel free to upload the reproducer here (zip the files) or to a gist, it can be useful for further troubleshooting. |
@kbakk using asyncio.run(worker.work()) make worker crash too
Here is the reproducer code : https://gist.github.com/seb-835/c495fafe0307927e4ed7cd587fa355a2 |
I've updated the docs to use |
Hello, it would be nice if you cloud also change it in the README.md, I took me quite a while to figure out the problem and to find this issue. Thank you. |
Hi,
i got a worker running in pyzeebe 2.4.0,
i made the change to have it using pyzeebe 3.0.0
In my code, i replace :
by
and i replace
by
But, the worker failed with error : no running event loop
what do i missed ?
The text was updated successfully, but these errors were encountered: