We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f3ab92c + d7999f4 commit 4a319a6Copy full SHA for 4a319a6
1 file changed
runpod/serverless/__init__.py
@@ -172,16 +172,15 @@ def start(config: Dict[str, Any]):
172
return
173
174
# --------------------------------- SLS-Core --------------------------------- #
175
- if os.getenv("RUNPOD_SLS_CORE", "false").lower() in (
176
- "1",
177
- "t",
178
- "T",
179
- "TRUE",
180
- "true",
181
- "True",
182
- ):
183
- core.main(config)
184
- return
+
+ if os.getenv("RUNPOD_SLS_CORE") is None and os.getenv("RUNPOD_USE_CORE") is not None:
+ log.warn("RUNPOD_USE_CORE is deprecated. Please use RUNPOD_SLS_CORE instead.")
+ core.main(config)
+ return
+ elif os.getenv("RUNPOD_SLS_CORE","false").lower() in ["1", "t", "true"]:
185
186
# --------------------------------- Standard --------------------------------- #
187
worker.main(config)
0 commit comments