Skip to content

Commit

Permalink
Clarify when --max_idle_secs is read.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 322471665
  • Loading branch information
dimo414 authored and copybara-github committed Jul 21, 2020
1 parent 905b011 commit 2decd3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion site/docs/user-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -2876,7 +2876,8 @@ <h4 id='flag--max_idle_secs'><code class='flag'>--max_idle_secs <var>n</var></co
This option specifies how long, in seconds, the Bazel server process
should wait after the last client request, before it exits. The
default value is 10800 (3 hours). <code class='flag'>--max_idle_secs=0</code> will cause the
Bazel server process to persist indefinitely.
Bazel server process to persist indefinitely. <i>NOTE:</i> this flag is only read if Bazel needs
to start a new server. Changing this option will not cause the server to restart.
</p>
<p>
This option may be used by scripts that invoke Bazel to ensure that
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,9 @@ public String getTypeDescription() {
effectTags = {OptionEffectTag.EAGERNESS_TO_EXIT, OptionEffectTag.LOSES_INCREMENTAL_STATE},
valueHelp = "<integer>",
help =
"The number of seconds the build server will wait idling before shutting down. Zero "
+ "means that the server will never shutdown.")
"The number of seconds the build server will wait idling before shutting down. Zero"
+ " means that the server will never shutdown. This is only read on server-startup,"
+ " changing this option will not cause the server to restart.")
public int maxIdleSeconds;

@Option(
Expand Down

0 comments on commit 2decd3e

Please sign in to comment.