Skip to content

Commit

Permalink
Address comment: Add comments
Browse files Browse the repository at this point in the history
Closes: #47419
Signed-off-by: Chi-Sheng Liu <[email protected]>
  • Loading branch information
MortalHappiness committed Nov 25, 2024
1 parent 6c08220 commit 52eae7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ray/gcs/redis_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,8 @@ std::unique_ptr<CallbackReply> RedisContext::RunArgvSync(
argv.push_back(arg.data());
argc.push_back(arg.size());
}
// Run the command with exponential backoff retries.
// Run the command. We try to reconnect if the connection is lost, and we retry with
// exponential backoff using the same connection if error happens.
auto exp_back_off = ExponentialBackOff(RayConfig::instance().redis_retry_base_ms(),
RayConfig::instance().redis_retry_multiplier(),
RayConfig::instance().redis_retry_max_ms());
Expand Down

0 comments on commit 52eae7c

Please sign in to comment.