Allow concurrency 0 to pause a terminal
A paused terminal gets no new runs and is not probed; in-flight runs still finish.
This commit is contained in:
@@ -45,6 +45,12 @@ class ConfigTest(unittest.TestCase):
|
||||
d["terminals"]["oregon"]["concurrency"] = "two"
|
||||
self.check_both(d, "concurrency")
|
||||
|
||||
def test_concurrency_zero_is_valid(self): # 0 = terminal paused (nothing new is dispatched)
|
||||
d = config_data()
|
||||
d["terminals"]["win10"]["concurrency"] = 0
|
||||
self.assertEqual(config.validate(d), [])
|
||||
self.assertEqual(config.mini_validate(d, SCHEMA), [])
|
||||
|
||||
def test_semantic_routing_to_unknown_terminal(self):
|
||||
d = config_data()
|
||||
d["projects"]["GWENT"]["routing"]["by_assignee"]["mac"] = "mac"
|
||||
|
||||
Reference in New Issue
Block a user