forked from luopingyi/xc_agent_platform_demo
live: 6 submits per hour (cycle cap 6, attempts 30, prechecks 60)
This commit is contained in:
@@ -204,8 +204,8 @@ class TestLiveMarks(unittest.TestCase):
|
||||
|
||||
def test_precheck_cap(self):
|
||||
self.precheck.return_value = 'ok', {'Biren_166m': 60027}
|
||||
rows = [dict(model_address=f'unit/m{i}', targetGpu='壁砺') for i in range(32)]
|
||||
for value, count in (('2', 2), ('bad', 30), ('0', 30)):
|
||||
rows = [dict(model_address=f'unit/m{i}', targetGpu='壁砺') for i in range(62)]
|
||||
for value, count in (('2', 2), ('bad', 60), ('0', 60)):
|
||||
_marked.clear()
|
||||
self.precheck.reset_mock()
|
||||
with patch.dict(os.environ, {'LIVE_MAX_PRECHECKS_PER_CYCLE': value, 'LIVE_MAX_ATTEMPTS_PER_CYCLE': '1'}):
|
||||
|
||||
Reference in New Issue
Block a user