feat(cloud): attribute planner token usage
This commit is contained in:
@@ -290,6 +290,12 @@ def test_planner_proxy_reserves_and_enforces_host_daily_token_budget(tmp_path) -
|
||||
assert first.json()["total_tokens"] == 2
|
||||
assert second.status_code == 429
|
||||
assert planner.calls == 1
|
||||
events = pool.store.list_host_token_usage_events(
|
||||
host_id="host-a", limit=10, offset=0
|
||||
)
|
||||
assert len(events) == 1
|
||||
assert events[0].total_tokens == 2
|
||||
assert events[0].task_id is None
|
||||
|
||||
|
||||
def test_long_poll_claim_returns_at_most_one_owned_assignment(tmp_path) -> None:
|
||||
|
||||
Reference in New Issue
Block a user