From 7df25de73b1af8c3b1f809fb6cf264692ee2030b Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 23 Apr 2024 11:59:04 +0200 Subject: just describe: support retry arguments ... as also just describe can communicate to grpc endpoints. --- share/man/just.1.md | 6 +++--- 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". -- cgit v1.2.3