Skip to content

Commit ee5bcfa

Browse files
authored
Retire sls-core since we're no longer developing it (#406)
1 parent a5f6a86 commit ee5bcfa

File tree

7 files changed

+1
-434
lines changed

7 files changed

+1
-434
lines changed

.github/tests.json

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -57,92 +57,5 @@
5757
"value3"
5858
]
5959
}
60-
},
61-
{
62-
"hardwareConfig": {
63-
"endpointConfig": {
64-
"name": "runpod-python E2E Test - Serverless Core - Basic",
65-
"gpuIds": "ADA_24,AMPERE_16,AMPERE_24,AMPERE_48,AMPERE_80"
66-
},
67-
"templateConfig": {
68-
"env": [
69-
{
70-
"key": "RUNPOD_USE_CORE",
71-
"value": "true"
72-
}
73-
]
74-
}
75-
},
76-
"input": {
77-
"mock_return": "this worked!"
78-
}
79-
},
80-
{
81-
"hardwareConfig": {
82-
"endpointConfig": {
83-
"name": "runpod-python E2E Test - Serverless Core - Long Job",
84-
"gpuIds": "ADA_24,AMPERE_16,AMPERE_24,AMPERE_48,AMPERE_80"
85-
},
86-
"templateConfig": {
87-
"env": [
88-
{
89-
"key": "RUNPOD_USE_CORE",
90-
"value": "true"
91-
}
92-
]
93-
}
94-
},
95-
"input": {
96-
"mock_return": "Delay test successful returned after waiting 5 minutes.",
97-
"mock_delay": 300
98-
}
99-
},
100-
{
101-
"hardwareConfig": {
102-
"endpointConfig": {
103-
"name": "runpod-python E2E Test - Serverless Core - Generator Handler",
104-
"gpuIds": "ADA_24,AMPERE_16,AMPERE_24,AMPERE_48,AMPERE_80"
105-
},
106-
"templateConfig": {
107-
"dockerArgs": "python3 -u /handler.py --generator --return_aggregate_stream",
108-
"env": [
109-
{
110-
"key": "RUNPOD_USE_CORE",
111-
"value": "true"
112-
}
113-
]
114-
}
115-
},
116-
"input": {
117-
"mock_return": [
118-
"value1",
119-
"value2",
120-
"value3"
121-
]
122-
}
123-
},
124-
{
125-
"hardwareConfig": {
126-
"endpointConfig": {
127-
"name": "runpod-python E2E Test - Serverless Core - Async Generator Handler",
128-
"gpuIds": "ADA_24,AMPERE_16,AMPERE_24,AMPERE_48,AMPERE_80"
129-
},
130-
"templateConfig": {
131-
"dockerArgs": "python3 -u /handler.py --async_generator --return_aggregate_stream",
132-
"env": [
133-
{
134-
"key": "RUNPOD_USE_CORE",
135-
"value": "true"
136-
}
137-
]
138-
}
139-
},
140-
"input": {
141-
"mock_return": [
142-
"value1",
143-
"value2",
144-
"value3"
145-
]
146-
}
14760
}
14861
]

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ __pycache__/
1515
*.py[cod]
1616
*$py.class
1717

18-
# C extensions
19-
*.so
20-
!sls_core.so
21-
2218
# Distribution / packaging
2319
.Python
2420
build/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ dependencies = { file = ["requirements.txt"] }
7171

7272
# Used by pytest coverage
7373
[tool.coverage.run]
74-
omit = ["runpod/_version.py", "runpod/serverless/core.py"]
74+
omit = ["runpod/_version.py",]

runpod/serverless/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
import time
1313
from typing import Any, Dict
1414

15-
from runpod.serverless import core
16-
1715
from ..version import __version__ as runpod_version
1816
from . import worker
1917
from .modules import rp_fastapi
@@ -171,17 +169,5 @@ def start(config: Dict[str, Any]):
171169
)
172170
return
173171

174-
# --------------------------------- SLS-Core --------------------------------- #
175-
176-
if os.getenv("RUNPOD_SLS_CORE") is None and os.getenv("RUNPOD_USE_CORE") is not None:
177-
log.warn("RUNPOD_USE_CORE is deprecated. Please use RUNPOD_SLS_CORE instead.")
178-
core.main(config)
179-
return
180-
181-
elif os.getenv("RUNPOD_SLS_CORE","false").lower() in ["1", "t", "true"]:
182-
core.main(config)
183-
return
184-
185-
# --------------------------------- Standard --------------------------------- #
186172
worker.main(config)
187173
return

0 commit comments

Comments
 (0)