MCPcopy Index your code
hub / github.com/kubernetes-client/python / worker

Method worker

kubernetes/test/test_informer.py:104–109  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

102 errors = []
103
104 def worker(n):
105 try:
106 for i in range(50):
107 self.cache._put(_make_pod("default", "pod-{}-{}".format(n, i)))
108 except Exception as exc:
109 errors.append(exc)
110
111 threads = [threading.Thread(target=worker, args=(t,)) for t in range(5)]
112 for t in threads:

Callers

nothing calls this directly

Calls 3

_make_podFunction · 0.85
_putMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected