forked from apache/shardingsphere-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
old_version_shardingsphere-elasticjob
154 lines (150 loc) · 10.8 KB
/
old_version_shardingsphere-elasticjob
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
commit 601277eb0f5448f8d201e43ab1e5b2919561afca
Author: skai <[email protected]>
Date: Tue Aug 10 13:51:38 2021 +0800
support spring module timeZone (#1957)
Co-authored-by: 蔡顺铠 <[email protected]>
diff --git a/docs/content/user-manual/elasticjob-lite/configuration/_index.cn.md b/docs/content/user-manual/elasticjob-lite/configuration/_index.cn.md
index 364a78325..a330eee40 100644
--- a/docs/content/user-manual/elasticjob-lite/configuration/_index.cn.md
+++ b/docs/content/user-manual/elasticjob-lite/configuration/_index.cn.md
@@ -42,19 +42,20 @@ ElasticJob-Lite 提供了 3 种配置方式,用于不同的使用场景。
| jobName | String | | 作业名称 |
| shardingTotalCount | int | | 作业分片总数 |
| cron | String | | CRON 表达式,用于控制作业触发时间 |
+| timeZone | String | | CRON 的时区设置 |
| shardingItemParameters | String | | 个性化分片参数 |
| jobParameter | String | | 作业自定义参数 |
| monitorExecution | boolean | true | 监控作业运行时状态 |
| failover | boolean | false | 是否开启任务执行失效转移 |
| misfire | boolean | true | 是否开启错过任务重新执行 |
-| maxTimeDiffSeconds | int | -1(不检查) | 最大允许的本机与注册中心的时间误差秒数 |
-| reconcileIntervalMinutes | int | 10 | 修复作业服务器不一致状态服务调度间隔分钟 |
+| maxTimeDiffSeconds | int | -1(不检查) | 最大允许的本机与注册中心的时间误差秒数 |
+| reconcileIntervalMinutes | int | 10 | 修复作业服务器不一致状态服务调度间隔分钟 |
| jobShardingStrategyType | String | AVG_ALLOCATION | 作业分片策略类型 |
| jobExecutorServiceHandlerType | String | CPU | 作业线程池处理策略 |
| jobErrorHandlerType | String | | 作业错误处理策略 |
-| description | String | | 作业描述信息 |
-| props | Properties | | 作业属性配置信息 |
-| disabled | boolean | false | 作业是否禁止启动 |
+| description | String | | 作业描述信息 |
+| props | Properties | | 作业属性配置信息 |
+| disabled | boolean | false | 作业是否禁止启动 |
| overwrite | boolean | false | 本地配置是否可覆盖注册中心配置 |
### 核心配置项说明
diff --git a/docs/content/user-manual/elasticjob-lite/configuration/_index.en.md b/docs/content/user-manual/elasticjob-lite/configuration/_index.en.md
index ae5ba399c..195e4e621 100644
--- a/docs/content/user-manual/elasticjob-lite/configuration/_index.en.md
+++ b/docs/content/user-manual/elasticjob-lite/configuration/_index.en.md
@@ -41,6 +41,7 @@ Include IP and port, multiple addresses are separated by commas, such as: `host1
| jobName | String | | Job name |
| shardingTotalCount | int | | Sharding total count |
| cron | String | | CRON expression, control the job trigger time |
+| timeZone | String | | time zone of CRON |
| shardingItemParameters | String | | Sharding item parameters |
| jobParameter | String | | Job parameter |
| monitorExecution | boolean | true | Monitor job execution status |
diff --git a/docs/content/user-manual/elasticjob-lite/configuration/java-api.cn.md b/docs/content/user-manual/elasticjob-lite/configuration/java-api.cn.md
index 2bb2478d3..02c3d2b5f 100644
--- a/docs/content/user-manual/elasticjob-lite/configuration/java-api.cn.md
+++ b/docs/content/user-manual/elasticjob-lite/configuration/java-api.cn.md
@@ -34,6 +34,7 @@ chapter = true
| jobName | 是 |
| shardingTotalCount | 是 |
| cron | 否 |
+| timeZone | 否 |
| shardingItemParameters | 否 |
| jobParameter | 否 |
| monitorExecution | 否 |
diff --git a/docs/content/user-manual/elasticjob-lite/configuration/java-api.en.md b/docs/content/user-manual/elasticjob-lite/configuration/java-api.en.md
index 74ea1e0e4..3670e0b4d 100644
--- a/docs/content/user-manual/elasticjob-lite/configuration/java-api.en.md
+++ b/docs/content/user-manual/elasticjob-lite/configuration/java-api.en.md
@@ -34,6 +34,7 @@ Configuration:
| jobName | Yes |
| shardingTotalCount | Yes |
| cron | No |
+| timeZone | No |
| shardingItemParameters | No |
| jobParameter | No |
| monitorExecution | No |
diff --git a/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.cn.md b/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.cn.md
index 7f25c022f..b40b79b10 100644
--- a/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.cn.md
+++ b/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.cn.md
@@ -47,6 +47,7 @@ elasticjob.reg-center.server-lists=localhost:6181
| --------------------------------- |:-------- |
| elasticJobClass / elasticJobType | 是 |
| cron | 否 |
+| timeZone | 否 |
| jobBootstrapBeanName | 否 |
| sharding-total-count | 是 |
| sharding-item-parameters | 否 |
@@ -80,6 +81,7 @@ elasticjob:
simpleJob:
elasticJobClass: org.apache.shardingsphere.elasticjob.lite.example.job.SpringBootSimpleJob
cron: 0/5 * * * * ?
+ timeZone: GMT+08:00
shardingTotalCount: 3
shardingItemParameters: 0=Beijing,1=Shanghai,2=Guangzhou
scriptJob:
@@ -100,6 +102,7 @@ elasticjob:
```
elasticjob.jobs.simpleJob.elastic-job-class=org.apache.shardingsphere.elasticjob.lite.example.job.SpringBootSimpleJob
elasticjob.jobs.simpleJob.cron=0/5 * * * * ?
+elasticjob.jobs.simpleJob.timeZone=GMT+08:00
elasticjob.jobs.simpleJob.sharding-total-count=3
elasticjob.jobs.simpleJob.sharding-item-parameters=0=Beijing,1=Shanghai,2=Guangzhou
elasticjob.jobs.scriptJob.elastic-job-type=SCRIPT
diff --git a/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.en.md b/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.en.md
index 2852abd64..e87764bb8 100644
--- a/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.en.md
+++ b/docs/content/user-manual/elasticjob-lite/configuration/spring-boot-starter.en.md
@@ -47,6 +47,7 @@ Configuration:
| --------------------------------- |:-------- |
| elasticJobClass / elasticJobType | Yes |
| cron | No |
+| timeZone | No |
| jobBootstrapBeanName | No |
| sharding-total-count | Yes |
| sharding-item-parameters | No |
@@ -81,6 +82,7 @@ elasticjob:
simpleJob:
elasticJobClass: org.apache.shardingsphere.elasticjob.lite.example.job.SpringBootSimpleJob
cron: 0/5 * * * * ?
+ timeZone: GMT+08:00
shardingTotalCount: 3
shardingItemParameters: 0=Beijing,1=Shanghai,2=Guangzhou
scriptJob:
@@ -101,6 +103,7 @@ elasticjob:
```
elasticjob.jobs.simpleJob.elastic-job-class=org.apache.shardingsphere.elasticjob.lite.example.job.SpringBootSimpleJob
elasticjob.jobs.simpleJob.cron=0/5 * * * * ?
+elasticjob.jobs.simpleJob.timeZone=GMT+08:00
elasticjob.jobs.simpleJob.sharding-total-count=3
elasticjob.jobs.simpleJob.sharding-item-parameters=0=Beijing,1=Shanghai,2=Guangzhou
elasticjob.jobs.scriptJob.elastic-job-type=SCRIPT
diff --git a/docs/content/user-manual/elasticjob-lite/configuration/spring-namespace.cn.md b/docs/content/user-manual/elasticjob-lite/configuration/spring-namespace.cn.md
index bb117f040..a1cf12cb9 100644
--- a/docs/content/user-manual/elasticjob-lite/configuration/spring-namespace.cn.md
+++ b/docs/content/user-manual/elasticjob-lite/configuration/spring-namespace.cn.md
@@ -48,6 +48,7 @@ chapter = true
| registry-center-ref | 是 |
| tracing-ref | 否 |
| cron | 是 |
+| timeZone | 否 |
| sharding-total-count | 是 |
| sharding-item-parameters | 否 |
| job-parameter | 否 |
diff --git a/docs/content/user-manual/elasticjob-lite/configuration/spring-namespace.en.md b/docs/content/user-manual/elasticjob-lite/configuration/spring-namespace.en.md
index 3b9231020..34301a261 100644
--- a/docs/content/user-manual/elasticjob-lite/configuration/spring-namespace.en.md
+++ b/docs/content/user-manual/elasticjob-lite/configuration/spring-namespace.en.md
@@ -48,6 +48,7 @@ Configuration:
| registry-center-ref | Yes |
| tracing-ref | No |
| cron | Yes |
+| timeZone | No |
| sharding-total-count | Yes |
| sharding-item-parameters | No |
| job-parameter | No |