Skip to content

Commit

Permalink
Update Java SDK retry options for poll operations to match Core SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
chronos-tachyon committed Feb 15, 2024
1 parent 72ebff1 commit cd5ad5c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@

/** Default rpc retry options for long polls like waiting for the workflow finishing and result. */
public class DefaultStubLongPollRpcRetryOptions {
public static final Duration INITIAL_INTERVAL = Duration.ofMillis(50);

public static final Duration INITIAL_INTERVAL = Duration.ofMillis(100);
public static final Duration CONGESTION_INITIAL_INTERVAL = Duration.ofMillis(1000);
public static final Duration MAXIMUM_INTERVAL = Duration.ofMinutes(1);
public static final double BACKOFF = 1.2;
public static final double BACKOFF = 1.5;
public static final double MAXIMUM_JITTER_COEFFICIENT = 0.1;

// partial build because expiration is not set, long polls work with absolute deadlines instead
Expand Down

0 comments on commit cd5ad5c

Please sign in to comment.