Skip to content

Commit 8e2003a

Browse files
committed
fix(app): up sanic RESPONSE_TIMEOUT from 1m to 1hr
downloads, training, etc.
1 parent b1f8f87 commit 8e2003a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# Create the http server app
1919
server = Sanic("my_app")
2020
server.config.CORS_ORIGINS = os.getenv("CORS_ORIGINS") or "*"
21+
server.config.RESPONSE_TIMEOUT = 60 * 60 # 1 hour (training can be long)
2122
Extend(server)
2223

2324

0 commit comments

Comments
 (0)