File tree Expand file tree Collapse file tree 4 files changed +37
-13
lines changed
src/main/java/com/uber/cadence Expand file tree Collapse file tree 4 files changed +37
-13
lines changed Original file line number Diff line number Diff line change 9
9
queue : " workers"
10
10
docker : " *"
11
11
command : " ./gradlew --no-daemon test"
12
- timeout_in_minutes : 30
12
+ timeout_in_minutes : 15
13
13
retry :
14
14
automatic :
15
15
- exit_status : " *"
24
24
queue : " workers"
25
25
docker : " *"
26
26
command : " ./gradlew --no-daemon test"
27
- timeout_in_minutes : 30
27
+ timeout_in_minutes : 15
28
28
retry :
29
29
automatic :
30
30
- exit_status : " *"
39
39
queue : " workers"
40
40
docker : " *"
41
41
command : " ./gradlew --no-daemon test"
42
- timeout_in_minutes : 30
42
+ timeout_in_minutes : 15
43
43
retry :
44
44
automatic :
45
45
- exit_status : " *"
Original file line number Diff line number Diff line change @@ -3,15 +3,21 @@ version: '3.5'
3
3
services :
4
4
cassandra :
5
5
image : cassandra:3.11
6
- logging :
7
- driver : none
6
+ deploy :
7
+ resources :
8
+ limits :
9
+ cpus : ' 4'
10
+ memory : 12000M
8
11
ports :
9
12
- " 9042:9042"
10
13
11
14
statsd :
12
15
image : hopsoft/graphite-statsd
13
- logging :
14
- driver : none
16
+ deploy :
17
+ resources :
18
+ limits :
19
+ cpus : ' 0.50'
20
+ memory : 1024M
15
21
ports :
16
22
- " 8080:80"
17
23
- " 2003:2003"
@@ -20,8 +26,11 @@ services:
20
26
21
27
cadence :
22
28
image : ubercadence/server:latestRelease-auto-setup
23
- logging :
24
- driver : none
29
+ deploy :
30
+ resources :
31
+ limits :
32
+ cpus : ' 2'
33
+ memory : 8192M
25
34
ports :
26
35
- " 7933:7933"
27
36
- " 7934:7934"
@@ -39,6 +48,11 @@ services:
39
48
context : ../../
40
49
dockerfile : ./docker/buildkite/Dockerfile
41
50
command : " ./gradlew --no-daemon test"
51
+ deploy :
52
+ resources :
53
+ limits :
54
+ cpus : ' 2'
55
+ memory : 8192M
42
56
environment :
43
57
- " USER=unittest"
44
58
- " CADENCE_SEEDS=cadence"
@@ -54,6 +68,11 @@ services:
54
68
context : ../../
55
69
dockerfile : ./docker/buildkite/Dockerfile
56
70
command : " ./gradlew --no-daemon test"
71
+ deploy :
72
+ resources :
73
+ limits :
74
+ cpus : ' 2'
75
+ memory : 8192M
57
76
environment :
58
77
- " USER=unittest"
59
78
- " CADENCE_SEEDS=cadence"
Original file line number Diff line number Diff line change @@ -685,8 +685,13 @@ public HistoryEvent next() {
685
685
if (!current .hasNext ()) {
686
686
log .error (
687
687
"GetWorkflowExecutionHistory returns an empty history, maybe a bug in server, workflowID:"
688
- + request .execution .workflowId +", runID:" +request .execution .runId +", domain:" +request .domain
689
- +" token:" + Arrays .toString (request .getNextPageToken ()));
688
+ + request .execution .workflowId
689
+ + ", runID:"
690
+ + request .execution .runId
691
+ + ", domain:"
692
+ + request .domain
693
+ + " token:"
694
+ + Arrays .toString (request .getNextPageToken ()));
690
695
throw new Error (
691
696
"GetWorkflowExecutionHistory return empty history, maybe a bug in server" );
692
697
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public static final class Builder {
47
47
private int maxConcurrentActivityExecutionSize = 100 ;
48
48
private int maxConcurrentWorkflowExecutionSize = 50 ;
49
49
private int maxConcurrentLocalActivityExecutionSize = 100 ;
50
- private double taskListActivitiesPerSecond = 100000 ;
50
+ private double taskListActivitiesPerSecond ;
51
51
private PollerOptions activityPollerOptions ;
52
52
private PollerOptions workflowPollerOptions ;
53
53
private Function <WorkflowInterceptor , WorkflowInterceptor > interceptorFactory = (n ) -> n ;
@@ -128,7 +128,7 @@ public Builder setInterceptorFactory(
128
128
* Notice that the number is represented in double, so that you can set it to less than 1 if
129
129
* needed. For example, set the number to 0.1 means you want your activity to be executed once
130
130
* every 10 seconds. This can be used to protect down stream services from flooding. The zero
131
- * value of this uses the default value. Default: 100k
131
+ * value means there's no limit.
132
132
*/
133
133
public Builder setTaskListActivitiesPerSecond (double taskListActivitiesPerSecond ) {
134
134
this .taskListActivitiesPerSecond = taskListActivitiesPerSecond ;
You can’t perform that action at this time.
0 commit comments