You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Worker stops when running locally with argument --rp_api_concurrency more than 1. In documentation written - use main.py main file for correct integration, this happens with main.py file.
To Reproduce
Steps to reproduce the behavior:
Create any simple worker
Worker main.py file contains following code: if __name__ == "__main__": cm = int(CONFIGS["GENERIC"]["concurrent_modifier"]) logging.info(f"Starting with {cm} workers.") runpod.serverless.start( { "handler": async_handler, "concurrency_modifier": lambda x: 5, # or without this line, result is same } )
Run your main file with command python src/main.py --rp_serve_api --rp_api_port 8080 --rp_api_concurrency 5
Expected behavior
Worker must run with 5 workers concurrently.
Desktop (please complete the following information):
OS: ubuntu
The text was updated successfully, but these errors were encountered:
--- Starting Serverless Worker | Version 1.7.3 --- INFO | Starting API server. DEBUG | Not deployed on RunPod serverless, pings will not be sent. WARNING: You must pass the application as an import string to enable 'reload' or 'workers'.
Describe the bug
Worker stops when running locally with argument --rp_api_concurrency more than 1. In documentation written - use main.py main file for correct integration, this happens with main.py file.
To Reproduce
Steps to reproduce the behavior:
if __name__ == "__main__": cm = int(CONFIGS["GENERIC"]["concurrent_modifier"]) logging.info(f"Starting with {cm} workers.") runpod.serverless.start( { "handler": async_handler, "concurrency_modifier": lambda x: 5, # or without this line, result is same } )
python src/main.py --rp_serve_api --rp_api_port 8080 --rp_api_concurrency 5
Expected behavior
Worker must run with 5 workers concurrently.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: