Addresses breaking change in core pyworker (#22)

* Addresses breaking change in test_utils.py

Endpoint.get_endpoint_api_key() now requires instance

Moves the call to this function out of the APIClient and into main

* Ensure make_benchmark_payload has a value to calculate the workload

---------

Co-authored-by: Nader Arbabian <nader@vast.ai>
This commit is contained in:
Rob Ballantyne
2025-07-18 01:09:23 +01:00
committed by Nader Arbabian
parent be2aafdb1f
commit e0be45f39a
3 changed files with 27 additions and 17 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ def start_server(backend: Backend, routes: List[web.RouteDef], **kwargs):
log.debug("starting server...")
app = web.Application()
app.add_routes(routes)
runner = web.AppRunner(app, handler_cancellation=True)
runner = web.AppRunner(app)
await runner.setup()
site = web.TCPSite(
runner,