runpod-python
runpod-python copied to clipboard
Not able to rest the serverless worked locally with concurrency (example provided on Runpod documentation fails)
Bug
Running concurrent server locally exits. with the error message: WARNING: You must pass the application as an import string to enable 'reload' or 'workers'. After this message, the process exits instead of being a live server for testing.
To Reproduce Steps to reproduce the behavior:
- Follow the steps here: https://docs.runpod.io/serverless/workers/development/concurrency
- Run "python runpod_example/main.py --rp_serve_api --rp_api_concurrency 4"
- See error
Expected behavior Expected a lock server with concurrency.
Desktop (please complete the following information):
- OS: Linux 4c03a197c102 6.8.0-45-generic #45~22.04.1-Ubuntu
@shreyassaxena What Python version are you using?