@@ -35,12 +35,12 @@ type Options struct {
35
35
36
36
// WorkflowPollingInterval is the interval between polling for new workflow tasks.
37
37
// Note that if you use a backend that can wait for tasks to be available (e.g. redis) this field has no effect.
38
- // Defaults to 1 second .
38
+ // Defaults to 200ms .
39
39
WorkflowPollingInterval time.Duration
40
40
41
41
// ActivityPollingInterval is the interval between polling for new activity tasks.
42
42
// Note that if you use a backend that can wait for tasks to be available (e.g. redis) this field has no effect.
43
- // Defaults to 1 second .
43
+ // Defaults to 200ms .
44
44
ActivityPollingInterval time.Duration
45
45
46
46
// WorkflowExecutorCache is the max size of the workflow executor cache. Defaults to 128
@@ -61,8 +61,8 @@ var DefaultOptions = Options{
61
61
MaxParallelActivityTasks : 0 ,
62
62
ActivityHeartbeatInterval : 25 * time .Second ,
63
63
WorkflowHeartbeatInterval : 25 * time .Second ,
64
- WorkflowPollingInterval : time .Second ,
65
- ActivityPollingInterval : time .Second ,
64
+ WorkflowPollingInterval : 200 * time .Millisecond ,
65
+ ActivityPollingInterval : 200 * time .Millisecond ,
66
66
67
67
WorkflowExecutorCacheSize : 128 ,
68
68
WorkflowExecutorCacheTTL : time .Second * 10 ,
0 commit comments