MCPcopy
hub / github.com/buildbot/buildbot / do

Method do

master/buildbot/worker/libvirt.py:74–86  ·  view source on GitHub ↗
(self, uri, func, *args, **kwargs)

Source from the content-addressed store, hash-verified

72 self.threads = {}
73
74 def do(self, uri, func, *args, **kwargs):
75 # returns a Deferred
76 if uri not in self.threads:
77 self.threads[uri] = self.ThreadClass(self, uri)
78
79 def logging_func(conn, *args, **kwargs):
80 try:
81 return func(conn, *args, **kwargs)
82 except Exception as e:
83 log.err(f"libvirt: Exception on {uri}: {e}")
84 raise
85
86 return self.threads[uri].execute_in_thread(logging_func, *args, **kwargs)
87
88 def is_connected(self, uri):
89 if uri in self.threads:

Callers 2

_pool_doMethod · 0.45

Calls 1

execute_in_threadMethod · 0.80

Tested by

no test coverage detected