Skip to content

Commit

Permalink
timeout increased
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-campi committed May 7, 2024
1 parent e8225ce commit 909fea8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/server/dcp_server/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"runner_name": "bento_runner",
"bento_model_path": "cells",
"service_name": "data-centric-platform",
"port": 7010
"port": 7010,
"timeout": 1000,
},

"model": {
Expand Down
3 changes: 2 additions & 1 deletion src/server/dcp_server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main() -> None:
"service", config_path=path.join(dir_name, "config.yaml")
)
port = str(service_config["port"])

timeout = str(service_config["timeout"])
subprocess.run(
[
"bentoml",
Expand All @@ -33,6 +33,7 @@ def main() -> None:
"service:svc",
"--reload",
"--port=" + port,
"--timeout=" + timeout
]
)

Expand Down

0 comments on commit 909fea8

Please sign in to comment.