Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure timeout with D2_TIMEOUT #1392

Merged
merged 11 commits into from
Jun 15, 2023
2 changes: 1 addition & 1 deletion ci/release/template/man/d2.1
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Print debug logs.
In watch mode, images used in icons are cached for subsequent compilations. This should be disabled if images might change
.Ns .
.It Fl -timeout Ar 120
The number of seconds before d2 will timeout.
The maximum number of seconds that D2 runs for before timing out and exiting. When rendering a large diagram, it is recommended to increase this value.
gavin-ts marked this conversation as resolved.
Show resolved Hide resolved
.Ns .
.It Fl h , -help
Print usage information and exit.
Expand Down
2 changes: 1 addition & 1 deletion d2cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func Run(ctx context.Context, ms *xmain.State) (err error) {
if err != nil {
return err
}
timeoutFlag, err := ms.Opts.Int64("D2_TIMEOUT", "timeout", "", 120, "the number of seconds before d2 will timeout")
timeoutFlag, err := ms.Opts.Int64("D2_TIMEOUT", "timeout", "", 120, "the maximum number of seconds that D2 runs for before timing out and exiting. When rendering a large diagram, it is recommended to increase this value")
if err != nil {
return err
}
Expand Down