Skip to content

Commit 9f23b2b

Browse files
Adjust various default timeout values (#568)
* Increase default RPC timeout to 3s * Reduce long poll timeout to 30s
1 parent 26407ae commit 9f23b2b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.buildkite/pipeline.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ steps:
99
queue: "workers"
1010
docker: "*"
1111
command: "./gradlew --no-daemon test"
12-
timeout_in_minutes: 15
12+
timeout_in_minutes: 30
1313
retry:
1414
automatic:
1515
- exit_status: "*"
@@ -24,7 +24,7 @@ steps:
2424
queue: "workers"
2525
docker: "*"
2626
command: "./gradlew --no-daemon test"
27-
timeout_in_minutes: 15
27+
timeout_in_minutes: 30
2828
retry:
2929
automatic:
3030
- exit_status: "*"
@@ -39,7 +39,7 @@ steps:
3939
queue: "workers"
4040
docker: "*"
4141
command: "./gradlew --no-daemon test"
42-
timeout_in_minutes: 15
42+
timeout_in_minutes: 30
4343
retry:
4444
automatic:
4545
- exit_status: "*"

src/main/java/com/uber/cadence/serviceclient/ClientOptions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public class ClientOptions {
2929
private static final String LOCALHOST = "127.0.0.1";
3030

3131
/** Default RPC timeout used for all non long poll calls. */
32-
private static final long DEFAULT_RPC_TIMEOUT_MILLIS = 1000;
32+
private static final long DEFAULT_RPC_TIMEOUT_MILLIS = 3 * 1000;
3333
/** Default RPC timeout used for all long poll calls. */
34-
private static final long DEFAULT_POLL_RPC_TIMEOUT_MILLIS = 125 * 1000;
34+
private static final long DEFAULT_POLL_RPC_TIMEOUT_MILLIS = 30 * 1000;
3535

3636
/** Default RPC timeout for QueryWorkflow */
3737
private static final long DEFAULT_QUERY_RPC_TIMEOUT_MILLIS = 10 * 1000;

0 commit comments

Comments
 (0)