Add a Scheduling Protocol

- Clearly delineate the required interface of schedulers
- Useful for typing
This commit is contained in:
Ran Benita
2024-04-05 14:38:21 +03:00
parent 91812bf5f9
commit bf2dcccfb0
6 changed files with 72 additions and 10 deletions

View File

@@ -103,6 +103,9 @@ class EachScheduling:
def mark_test_pending(self, item):
raise NotImplementedError()
def remove_pending_tests_from_node(self, node, indices):
raise NotImplementedError()
def remove_node(self, node):
# KeyError if we didn't get an add_node() yet
pending = self.node2pending.pop(node)