Skip to content

Commit

Permalink
fix(configuration): graceful shutdown does not end early
Browse files Browse the repository at this point in the history
  • Loading branch information
gulien committed Oct 17, 2024
1 parent 1d14476 commit f22d393
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,21 @@ The following flags allow you to configure the logger:
## Graceful Shutdown

To ensure running tasks have sufficient time to complete, Gotenberg waits for a specific duration before initiating the
shutdown process. It may stop earlier if all tasks have completed.
shutdown process.

The following flag allows you to configure this duration:

| Flag | Description | Default |
|------------------------------------------------------------------------------------|-------------------------------------|---------|
| <span class="badge badge--secondary">--gotenberg-graceful-shutdown-duration</span> | Set the graceful shutdown duration. | 30s |

:::info

When using the [webhook feature](webhook), ensure that this duration is equal to or longer than the API timeout period.
This way, you can confirm that all asynchronous processes complete before Gotenberg begins its shutdown sequence.

:::

## Docker Image

### Fonts
Expand Down

0 comments on commit f22d393

Please sign in to comment.