Skip to content

Commit

Permalink
fix(app): up sanic RESPONSE_TIMEOUT from 1m to 1hr
Browse files Browse the repository at this point in the history
downloads, training, etc.
  • Loading branch information
gadicc committed Apr 29, 2023
1 parent b1f8f87 commit 8e2003a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# Create the http server app
server = Sanic("my_app")
server.config.CORS_ORIGINS = os.getenv("CORS_ORIGINS") or "*"
server.config.RESPONSE_TIMEOUT = 60 * 60 # 1 hour (training can be long)
Extend(server)


Expand Down

0 comments on commit 8e2003a

Please sign in to comment.