your_function.py
with the name of your Python file containing the Runpod handler.
--rp_api_host
to 0.0.0.0
allows connections from other devices on the network, which can be useful for testing but may have security implications.
--rp_api_concurrency
with a value greater than 1, ensure your main file is named main.py
for proper FastAPI integration.ERROR
| WARN
| INFO
| DEBUG
Usage:
--rp_debugger
flag is particularly useful when you need to step through your code for troubleshooting.
Usage:
--test_input
flag is an alternative to using a test_input.json
file. If both are present, the command-line input takes precedence.
8080
with 4 concurrent workers, sets the log level to DEBUG
, and provides test input data.
These flags provide powerful tools for customizing your local testing environment. By using them effectively, you can simulate various scenarios, debug issues, and ensure your Serverless functions are robust and ready for deployment to the Runpod cloud.
For more detailed information on each flag and advanced usage scenarios, refer to the individual tutorials in this documentation.