MCPcopy
hub / github.com/pytest-dev/pytest-xdist / add_node

Method add_node

src/xdist/scheduler/load.py:115–125  ·  view source on GitHub ↗

Add a new node to the scheduler. From now on the node will be allocated chunks of tests to execute. Called by the ``DSession.worker_workerready`` hook when it successfully bootstraps a new node.

(self, node: WorkerController)

Source from the content-addressed store, hash-verified

113 return False
114
115 def add_node(self, node: WorkerController) -> None:
116 """Add a new node to the scheduler.
117
118 From now on the node will be allocated chunks of tests to
119 execute.
120
121 Called by the ``DSession.worker_workerready`` hook when it
122 successfully bootstraps a new node.
123 """
124 assert node not in self.node2pending
125 self.node2pending[node] = []
126
127 def add_node_collection(
128 self, node: WorkerController, collection: Sequence[str]

Calls

no outgoing calls