Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
fix: Add missing session creation args (starts_at, bootstrap_script) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Mar 20, 2022
1 parent 07f59d4 commit 99cae84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes/213.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix missing propagation of `starts_at` and `bootstrap_script` arguments to the session creation API, which have been supported since v20.03
2 changes: 2 additions & 0 deletions src/ai/backend/client/func/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ async def get_or_create(
else:
params['config']['clusterSize'] = cluster_size
if api_session.get().api_version >= (5, '20191215'):
params['starts_at'] = starts_at
params['bootstrap_script'] = bootstrap_script
if assign_agent is not None:
params['config'].update({
'mount_map': mount_map,
Expand Down

0 comments on commit 99cae84

Please sign in to comment.