Skip to content

Commit

Permalink
feat: add change log
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmerrell committed Dec 28, 2023
1 parent 938710c commit fcf5de6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## Release 1.5.0 (12/28/23)

### Added

- Optional serverless core implementation, use with environment variable `RUNPOD_USE_CORE=True` or `RUNPOD_CORE_PATH=/path/to/core.so`

### Changed

- Reduced *await asyncio.sleep* calls to 0 to reduce execution time.

---

## Release 1.4.2 (12/14/23)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ dependencies = { file = ["requirements.txt"] }

# Used by pytest coverage
[tool.coverage.run]
omit = ["runpod/_version.py", "runpod/core.py"]
omit = ["runpod/_version.py", "runpod/serverless/core.py"]
2 changes: 1 addition & 1 deletion runpod/serverless/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def start(config: Dict[str, Any]):
)

# --------------------------------- SLS-Core --------------------------------- #
elif os.environ.get("RUNPOD_SLS_CORE", None) or os.environ.get("RUNPOD_SLS_CORE_PATH", None):
elif os.environ.get("RUNPOD_USE_CORE", None) or os.environ.get("RUNPOD_CORE_PATH", None):
log.info("Starting worker with SLS-Core.")
core.main(config)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_serverless/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ async def test_run_worker_with_sls_core(self):
'''
Test run_worker with sls-core.
'''
os.environ["RUNPOD_SLS_CORE"] = "true"
os.environ["RUNPOD_USE_CORE"] = "true"

with patch("runpod.serverless.core.main") as mock_main:
runpod.serverless.start(self.config)
Expand Down

0 comments on commit fcf5de6

Please sign in to comment.