Skip to content

Commit e6d932b

Browse files
authored
Merge pull request #635 from runloopai/james/run_profile
Add run_profile when starting a scenario
2 parents 7da12f2 + 9ec969b commit e6d932b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/runloop_api_client/resources/scenarios/scenarios.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ def start_run_and_await_env_ready(
460460
benchmark_run_id: Optional[str] | NotGiven = NOT_GIVEN,
461461
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
462462
run_name: Optional[str] | NotGiven = NOT_GIVEN,
463+
run_profile: Optional[scenario_start_run_params.RunProfile] | NotGiven = NOT_GIVEN,
463464
polling_config: PollingConfig | None = None,
464465
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
465466
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -475,6 +476,7 @@ def start_run_and_await_env_ready(
475476
scenario_id: ID of the Scenario to run
476477
benchmark_run_id: Benchmark to associate the run
477478
run_name: Display name of the run
479+
run_profile: Runtime configuration to use for this benchmark run
478480
polling_config: Optional polling configuration
479481
extra_headers: Send extra headers
480482
extra_query: Add additional query parameters to the request
@@ -494,6 +496,7 @@ def start_run_and_await_env_ready(
494496
benchmark_run_id=benchmark_run_id,
495497
metadata=metadata,
496498
run_name=run_name,
499+
run_profile=run_profile,
497500
extra_headers=extra_headers,
498501
extra_query=extra_query,
499502
extra_body=extra_body,
@@ -913,6 +916,7 @@ async def start_run_and_await_env_ready(
913916
benchmark_run_id: Optional[str] | NotGiven = NOT_GIVEN,
914917
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
915918
run_name: Optional[str] | NotGiven = NOT_GIVEN,
919+
run_profile: Optional[scenario_start_run_params.RunProfile] | NotGiven = NOT_GIVEN,
916920
polling_config: PollingConfig | None = None,
917921
) -> ScenarioRunView:
918922
"""Start a new ScenarioRun and wait for its environment to be ready.
@@ -921,6 +925,7 @@ async def start_run_and_await_env_ready(
921925
scenario_id: ID of the Scenario to run
922926
benchmark_run_id: Benchmark to associate the run
923927
run_name: Display name of the run
928+
run_profile: Runtime configuration to use for this benchmark run
924929
polling_config: Optional polling configuration
925930
926931
Returns:
@@ -935,6 +940,7 @@ async def start_run_and_await_env_ready(
935940
benchmark_run_id=benchmark_run_id,
936941
metadata=metadata,
937942
run_name=run_name,
943+
run_profile=run_profile,
938944
)
939945

940946
await self._client.devboxes.await_running(

0 commit comments

Comments
 (0)