Skip to content

Commit

Permalink
feat: Execute keypair bootstrap script for batch compute session (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrysn committed Jun 6, 2022
1 parent ed6cd9e commit dcdf9c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/437.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Execute the keypair bootstrap script for batch compute session as well (previously it was only executed for interactive sessions)
3 changes: 1 addition & 2 deletions src/ai/backend/manager/api/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,7 @@ async def _create(request: web.Request, params: dict[str, Any]) -> web.Response:
owner_uuid, group_id, resource_policy = await _query_userinfo(request, params, conn)

# Use keypair bootstrap_script if it is not delivered as a parameter
# (only for INTERACTIVE sessions).
if params['session_type'] == SessionTypes.INTERACTIVE and not params['bootstrap_script']:
if not params['bootstrap_script']:
script, _ = await query_bootstrap_script(conn, owner_access_key)
params['bootstrap_script'] = script

Expand Down

0 comments on commit dcdf9c4

Please sign in to comment.