Hangup on resume #19
-
output: ^C2022-09-22 16:42:43,635 CHECK` Did I do anything crazy with the resume_mining wrapper / asyncio tasks?? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Looking at this code, it looks like you are using Basically replace |
Beta Was this translation helpful? Give feedback.
Looking at this code, it looks like you are using
asyncio.create_task()to run the pause in the background when you actually want to await it. Awaiting it will block until the tasks complete.Basically replace
asyncio.create_task(stop_all_miners(miners))withawait stop_all_miners(miners), same goes for the resume.