Skip to content

Commit

Permalink
Change the ownership of extracted files to those of the process user (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn authored Feb 15, 2024
1 parent 63f61c4 commit 48336b1
Show file tree
Hide file tree
Showing 6 changed files with 283 additions and 209 deletions.
94 changes: 47 additions & 47 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sagemaker-shim"
version = "0.3.0a1"
version = "0.3.0a2"
description = "Adapts algorithms that implement the Grand Challenge inference API for running in SageMaker"
authors = ["James Meakin <[email protected]>"]
license = "Apache-2.0"
Expand Down
6 changes: 3 additions & 3 deletions sagemaker_shim/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from sagemaker_shim.app import app
from sagemaker_shim.logging import LOGGING_CONFIG
from sagemaker_shim.models import (
DependentData,
AuxiliaryData,
InferenceTaskList,
get_s3_file_content,
)
Expand All @@ -39,7 +39,7 @@ def cli() -> None:

@cli.command(short_help="Start the model server")
def serve() -> None:
with DependentData():
with AuxiliaryData():
uvicorn.run(
app=app, host="0.0.0.0", port=8080, log_config=None, workers=1
)
Expand Down Expand Up @@ -86,7 +86,7 @@ async def invoke(tasks: str, file: str) -> None:
) from error

if parsed_tasks.root:
with DependentData():
with AuxiliaryData():
for task in parsed_tasks.root:
# Only run one task at a time
await task.invoke()
Expand Down
Loading

0 comments on commit 48336b1

Please sign in to comment.