diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-23 11:59:04 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-23 11:59:04 +0200 |
commit | 7df25de73b1af8c3b1f809fb6cf264692ee2030b (patch) | |
tree | d0448764b8e19d4ddf90c21e7cbf855a52d56999 | |
parent | 62f506aefc18dd5125b03e6215877b031656d0ed (diff) | |
download | justbuild-7df25de73b1af8c3b1f809fb6cf264692ee2030b.tar.gz |
just describe: support retry arguments
... as also just describe can communicate to grpc endpoints.
-rw-r--r-- | share/man/just.1.md | 6 | ||||
-rw-r--r-- | src/buildtool/main/cli.cpp | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/share/man/just.1.md b/share/man/just.1.md index de0cf605..504386ce 100644 --- a/share/man/just.1.md +++ b/share/man/just.1.md @@ -581,19 +581,19 @@ Supported by: analyse|build|install|rebuild|traverse. **`--max-attempts`** *`NUM`* If a remote procedure call (rpc) returns `grpc::StatusCode::UNAVAILABLE`, that rpc is retried at most *`NUM`* times. (Default: 1, i.e., no retry). -Supported by: analyse|build|install|rebuild|traverse. +Supported by: analyse|build|describe|install|rebuild|traverse. **`--initial-backoff-seconds`** *`NUM`* Before retrying the second time, the client will wait the given amount of seconds plus a jitter, to better distribute the workload. (Default: 1). -Supported by: analyse|build|install|rebuild|traverse. +Supported by: analyse|build|describe|install|rebuild|traverse. **`--max-backoff-seconds`** *`NUM`* From the third attempt (included) on, the backoff time is doubled at each attempt, until it exceeds the `max-backoff-seconds` parameter. From that point, the waiting time is computed as `max-backoff-seconds` plus a jitter. (Default: 60) -Supported by: analyse|build|install|rebuild|traverse. +Supported by: analyse|build|describe|install|rebuild|traverse. Remote serve options -------------------- diff --git a/src/buildtool/main/cli.cpp b/src/buildtool/main/cli.cpp index 39f0a17e..759c7124 100644 --- a/src/buildtool/main/cli.cpp +++ b/src/buildtool/main/cli.cpp @@ -35,6 +35,7 @@ auto SetupDescribeCommandArguments( SetupExecutionEndpointArguments(app, &clargs->endpoint); SetupCompatibilityArguments(app); SetupDescribeArguments(app, &clargs->describe); + SetupRetryArguments(app, &clargs->retry); } /// \brief Setup arguments for sub command "just analyse". |