Skip to content

Commit

Permalink
some trace to debug + max_concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
supa-thibaud committed Aug 23, 2024
1 parent 3e52cbd commit 9829d0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ async def async_handler(job):
max_concurrency = int(os.getenv("MAX_CONCURRENCY", 100))
print(f"MAX_CONCURRENCY {max_concurrency}")

runpod.serverless.start({"handler": async_handler, "concurrency_modifier": max_concurrency, "return_aggregate_stream": True})
runpod.serverless.start({"handler": async_handler,
"concurrency_modifier": lambda x: max_concurrency,
"return_aggregate_stream": True})

# # Ensure the server is shut down when the serverless function is terminated
# import atexit
Expand Down

0 comments on commit 9829d0e

Please sign in to comment.