Skip to content

Commit

Permalink
fix: fox docs format
Browse files Browse the repository at this point in the history
  • Loading branch information
gusghrlrl101 committed Apr 19, 2024
1 parent 9f2847e commit e158c57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/guides/configurations.rst
Expand Up @@ -226,16 +226,17 @@ BentoML parses all the available fields directly to `Uvicorn <https://www.uvicor
# Service implementation
``timeouts``
^^^^^^^^^^^
^^^^^^^^^^^^

``timeouts`` allows you to set the timeout for keep alive and graceful shutdown.

BentoML parses all the available fields directly to `Uvicorn <https://www.uvicorn.org/settings/#timeouts>`_. Here is an example:

.. code-block:: python
@bentoml.service(timeouts={
"keep_alive": 60,
"graceful_shutdown": 120,
"graceful_shutdown": 120
})
class MyService:
# Service implementation
Expand Down

0 comments on commit e158c57

Please sign in to comment.