Closed jiangyangcreate closed 1 year ago
At first, I suspected it was a CPU problem ,CPU is not fast enough , but my cpu was just use 80%
This is not an end-to-end specific use-case and looks more like a general Python related issue. Closing for now since we can't act on that without a clear small repro. I'd recommend to ask on SlackOverflow or GitHub Discussions.
Context:
Code Snippet
Describe the bug
I set one browser and different context and i try to use page.goto for different url . if yes :continue go other url (for show the bug : i use simple url to define tid ) else close the page and context ,and create new page and context
task run and use await switch task when i put more task , will be have some task cannot resume .
1.log
i record by logging.warning(f'{tid}close') now i have 30 task and 300 log ,but [7:close] just 4 times
you can use headless=False , and will find some page longtime no close() it Lose the meaning of the async/await