Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Jun 2, 2024
1 parent 5b91fd3 commit 0144d88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions sky/api/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ async def refresh_cluster_status_event():
refresh_cluster_status_event,
]


class RequestBody(pydantic.BaseModel):
env_vars: Dict[str, str] = {}


def wrapper(func: Callable[P, Any], request_id: str, env_vars: Dict[str, str], *args: P.args,
**kwargs: P.kwargs):
def wrapper(func: Callable[P, Any], request_id: str, env_vars: Dict[str, str],
*args: P.args, **kwargs: P.kwargs):
"""Wrapper for a request task."""

def redirect_output(file):
Expand Down
1 change: 0 additions & 1 deletion sky/api/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def _add_env_vars_to_body(body: Dict[str, Any]):
body['env_vars'] = env_vars



@usage_lib.entrypoint
@_check_health
def launch(
Expand Down

0 comments on commit 0144d88

Please sign in to comment.