From b81fcae6fba9c6ece49209bfb630f7d72993cabc Mon Sep 17 00:00:00 2001 From: BennyKok Date: Wed, 31 Jan 2024 04:11:21 +0000 Subject: [PATCH] fix: timeout issues with nextjs by changing run remote to run spawn --- builder/modal-builder/src/template/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/modal-builder/src/template/app.py b/builder/modal-builder/src/template/app.py index 1d4145d..303bb97 100644 --- a/builder/modal-builder/src/template/app.py +++ b/builder/modal-builder/src/template/app.py @@ -231,7 +231,8 @@ def run(input: Input): async def bar(request_input: RequestInput): # print(request_input) if not deploy_test: - return run.remote(request_input.input) + run.spawn(request_input.input) + return {"status": "success"} # pass