mirror of
https://github.com/hansjone/netx.git
synced 2026-10-14 11:43:18 +08:00
feat(cutover): pair metric collection rounds and isolate manual routes
This commit is contained in:
parent
32d7d969f6
commit
d3618deff6
14 changed files with 809 additions and 154 deletions
|
|
@ -138,10 +138,13 @@ class EvidencePersistTests(unittest.TestCase):
|
|||
return t
|
||||
|
||||
def _mk_batch(self, bid: str, task_id: str) -> BizStateBatch:
|
||||
task = self.db.get(BizStateTask, task_id)
|
||||
now = _utcnow()
|
||||
b = BizStateBatch(
|
||||
id=bid,
|
||||
task_id=task_id,
|
||||
collect_group_id=task.collect_group_id or "",
|
||||
collect_round_id="test-" + task.collect_group_id if task.collect_group_id else "",
|
||||
status="success",
|
||||
started_at=now,
|
||||
ended_at=now,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue