Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
X
XXL-JOB
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
靳帅
XXL-JOB
Commits
c48cb6eb
提交
c48cb6eb
authored
4月 28, 2018
作者:
xuxueli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Glue(Shell) 等脚本任务支持失败重试;
上级
ea5b3541
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
10 行删除
+12
-10
XXL-JOB官方文档.md
doc/XXL-JOB官方文档.md
+1
-1
XxlJobLogMapper.xml
...min/src/main/resources/mybatis-mapper/XxlJobLogMapper.xml
+10
-8
ScriptJobHandler.java
.../java/com/xxl/job/core/handler/impl/ScriptJobHandler.java
+1
-1
没有找到文件。
doc/XXL-JOB官方文档.md
浏览文件 @
c48cb6eb
...
@@ -925,7 +925,7 @@ echo "分片总数 total = $3"
...
@@ -925,7 +925,7 @@ echo "分片总数 total = $3"
--- | --- | ---
--- | --- | ---
成功 | IJobHandler.SUCCESS | 0
成功 | IJobHandler.SUCCESS | 0
失败 | IJobHandler.FAIL | -1(其他)
失败 | IJobHandler.FAIL | -1(其他)
失败重试 | IJobHandler.FAIL_RETRY |
5
01
失败重试 | IJobHandler.FAIL_RETRY |
1
01
## 六、版本更新日志
## 六、版本更新日志
...
...
xxl-job-admin/src/main/resources/mybatis-mapper/XxlJobLogMapper.xml
浏览文件 @
c48cb6eb
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
SELECT
<include
refid=
"Base_Column_List"
/>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM XXL_JOB_QRTZ_TRIGGER_LOG AS t
FROM XXL_JOB_QRTZ_TRIGGER_LOG AS t
<trim
prefix=
"WHERE"
prefixOverrides=
"AND | OR"
>
<trim
prefix=
"WHERE"
prefixOverrides=
"AND | OR"
>
<if
test=
"jobGroup
!= null and jobGroup != ''
"
>
<if
test=
"jobGroup
gt 0
"
>
AND t.job_group = #{jobGroup}
AND t.job_group = #{jobGroup}
</if>
</if>
<if
test=
"jobId gt 0"
>
<if
test=
"jobId gt 0"
>
...
@@ -62,12 +62,13 @@
...
@@ -62,12 +62,13 @@
</if>
</if>
<if
test=
"logStatus == 2"
>
<if
test=
"logStatus == 2"
>
AND (
AND (
(t.trigger_code
<![CDATA[ > ]]>
0 AND t.trigger_code!=
200) ||
t.trigger_code NOT IN (0,
200) ||
(t.handle_code
<![CDATA[ > ]]>
0 AND t.handle_code!=
200)
t.handle_code NOT IN (0,
200)
)
)
</if>
</if>
<if
test=
"logStatus == 3"
>
<if
test=
"logStatus == 3"
>
AND (t.trigger_code = 200 AND t.handle_code=0)
AND t.trigger_code = 200
AND t.handle_code = 0
</if>
</if>
</trim>
</trim>
ORDER BY id DESC
ORDER BY id DESC
...
@@ -78,7 +79,7 @@
...
@@ -78,7 +79,7 @@
SELECT count(1)
SELECT count(1)
FROM XXL_JOB_QRTZ_TRIGGER_LOG AS t
FROM XXL_JOB_QRTZ_TRIGGER_LOG AS t
<trim
prefix=
"WHERE"
prefixOverrides=
"AND | OR"
>
<trim
prefix=
"WHERE"
prefixOverrides=
"AND | OR"
>
<if
test=
"jobGroup
!= null and jobGroup != ''
"
>
<if
test=
"jobGroup
gt 0
"
>
AND t.job_group = #{jobGroup}
AND t.job_group = #{jobGroup}
</if>
</if>
<if
test=
"jobId gt 0"
>
<if
test=
"jobId gt 0"
>
...
@@ -95,12 +96,13 @@
...
@@ -95,12 +96,13 @@
</if>
</if>
<if
test=
"logStatus == 2"
>
<if
test=
"logStatus == 2"
>
AND (
AND (
(t.trigger_code
<![CDATA[ > ]]>
0 AND t.trigger_code!=
200) ||
t.trigger_code NOT IN (0,
200) ||
(t.handle_code
<![CDATA[ > ]]>
0 AND t.handle_code!=
200)
t.handle_code NOT IN (0,
200)
)
)
</if>
</if>
<if
test=
"logStatus == 3"
>
<if
test=
"logStatus == 3"
>
AND (t.trigger_code = 200 AND t.handle_code=0)
AND t.trigger_code = 200
AND t.handle_code = 0
</if>
</if>
</trim>
</trim>
</select>
</select>
...
...
xxl-job-core/src/main/java/com/xxl/job/core/handler/impl/ScriptJobHandler.java
浏览文件 @
c48cb6eb
...
@@ -66,7 +66,7 @@ public class ScriptJobHandler extends IJobHandler {
...
@@ -66,7 +66,7 @@ public class ScriptJobHandler extends IJobHandler {
if
(
exitValue
==
0
)
{
if
(
exitValue
==
0
)
{
return
IJobHandler
.
SUCCESS
;
return
IJobHandler
.
SUCCESS
;
}
else
if
(
exitValue
==
5
01
)
{
}
else
if
(
exitValue
==
1
01
)
{
return
IJobHandler
.
FAIL_RETRY
;
return
IJobHandler
.
FAIL_RETRY
;
}
else
{
}
else
{
return
new
ReturnT
<
String
>(
IJobHandler
.
FAIL
.
getCode
(),
"script exit value("
+
exitValue
+
") is failed"
);
return
new
ReturnT
<
String
>(
IJobHandler
.
FAIL
.
getCode
(),
"script exit value("
+
exitValue
+
") is failed"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论