Merge pull request #1072 from zmedico/gateway-cache-rinfo
Cache execnet gateway rinfo during WorkerController setup
This commit is contained in:
1
changelog/1071.bugfix
Normal file
1
changelog/1071.bugfix
Normal file
@@ -0,0 +1 @@
|
||||
Add backward compatibility for deadlock issue with the ``execnet`` new ``main_thread_only`` "execmodel" triggered when pytest-cov accesses rinfo.
|
||||
@@ -312,6 +312,11 @@ class WorkerController:
|
||||
|
||||
def setup(self) -> None:
|
||||
self.log("setting up worker session")
|
||||
# Cache rinfo for backward compatibility, since pytest-cov
|
||||
# accesses rinfo while the main thread is busy executing our
|
||||
# remote_exec call, which triggers a deadlock error for the
|
||||
# main_thread_only execmodel if the rinfo has not been cached.
|
||||
self.gateway._rinfo()
|
||||
spec = self.gateway.spec
|
||||
args = [str(x) for x in self.config.invocation_params.args or ()]
|
||||
option_dict = {}
|
||||
|
||||
Reference in New Issue
Block a user