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
I have implemented multithreaded model of playwright in exact same manner. I am running it inside my FastAPI application to run some tests on multithread using playwright when api requests come.
My code is working fine but once the execution comes out of threadpool executor, the spawned threads are not getting disposed and when next request comes it again creates news threads and this goes on resulting in creation of huge number of threads.
Was the solution provided the above mentioned issue link also had this problem or there might be something wrong at my end?
The text was updated successfully, but these errors were encountered:
The issue has been resolved now.
The problem was that in the init I was calling the playwright.start() method which starts connection but the stop method was not being called in teardown.
Your question
In context to the discussion on the issue #623
I have implemented multithreaded model of playwright in exact same manner. I am running it inside my FastAPI application to run some tests on multithread using playwright when api requests come.
My code is working fine but once the execution comes out of threadpool executor, the spawned threads are not getting disposed and when next request comes it again creates news threads and this goes on resulting in creation of huge number of threads.
Was the solution provided the above mentioned issue link also had this problem or there might be something wrong at my end?
The text was updated successfully, but these errors were encountered: