Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
113e70ca
authored
Apr 27, 2017
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
脚本任务实现
parent
935cc127
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
README.md
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
README.md
View file @
113e70ca
...
@@ -24,6 +24,7 @@ XXL-JOB銝銝芾蝠漣遙靚漲獢嚗敹挽霈∠
...
@@ -24,6 +24,7 @@ XXL-JOB銝銝芾蝠漣遙靚漲獢嚗敹挽霈∠
-
17、路由策略:执行器集群部署时提供丰富的路由策略,包括:第一个、最后一个、轮询、随机、一致性HASH、最不经常使用、最近最久未使用、故障转移;
-
17、路由策略:执行器集群部署时提供丰富的路由策略,包括:第一个、最后一个、轮询、随机、一致性HASH、最不经常使用、最近最久未使用、故障转移;
-
18、Rolling日志:支持以Rolling方式实时查看执行器输出的日志信息,实时监控任务进度;
-
18、Rolling日志:支持以Rolling方式实时查看执行器输出的日志信息,实时监控任务进度;
-
19、运行报表:支持实时查看运行数据,如任务数量、调度次数、执行器数量等;以及调度报表,如调度日期分布图,调度成功分布图等;
-
19、运行报表:支持实时查看运行数据,如任务数量、调度次数、执行器数量等;以及调度报表,如调度日期分布图,调度成功分布图等;
-
20、脚本任务:支持开发脚本任务,如Shell、Python和Groovy等脚本;
#### 1.3 发展
#### 1.3 发展
于2015年中,我在github上创建XXL-JOB项目仓库并提交第一个commit,随之进行系统结构设计,UI选型,交互设计……
于2015年中,我在github上创建XXL-JOB项目仓库并提交第一个commit,随之进行系统结构设计,UI选型,交互设计……
...
...
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
View file @
113e70ca
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<th
name=
"jobGroup"
>
jobGroup
</th>
<th
name=
"jobGroup"
>
jobGroup
</th>
<th
name=
"childJobKey"
>
JobKey
</th>
<th
name=
"childJobKey"
>
JobKey
</th>
<th
name=
"jobDesc"
>
描述
</th>
<th
name=
"jobDesc"
>
描述
</th>
<th
name=
"
executorHandler"
>
JobHandler
</th>
<th
name=
"
glueType"
>
运行模式
</th>
<th
name=
"executorParam"
>
任务参数
</th>
<th
name=
"executorParam"
>
任务参数
</th>
<th
name=
"jobCron"
>
Cron
</th>
<th
name=
"jobCron"
>
Cron
</th>
<th
name=
"addTime"
>
新增时间
</th>
<th
name=
"addTime"
>
新增时间
</th>
...
@@ -192,7 +192,6 @@ public class DemoGlueJobHandler extends IJobHandler {
...
@@ -192,7 +192,6 @@ public class DemoGlueJobHandler extends IJobHandler {
</textarea>
</textarea>
<textarea
class=
"glueSource_shell"
style=
"display:none;"
>
<textarea
class=
"glueSource_shell"
style=
"display:none;"
>
#!/bin/bash
#!/bin/bash
echo "xxl-job: hello shell"
echo "xxl-job: hello shell"
for item in 1 2 3
for item in 1 2 3
...
@@ -217,7 +216,6 @@ logging.info('xxl-job: hello python')
...
@@ -217,7 +216,6 @@ logging.info('xxl-job: hello python')
for num in range(1, 3):
for num in range(1, 3):
time.sleep(1)
time.sleep(1)
logging.info('python :' + str(num) )
logging.info('python :' + str(num) )
logging.info('Good bye!')
logging.info('Good bye!')
</textarea>
</textarea>
...
...
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
View file @
113e70ca
...
@@ -45,11 +45,20 @@ $(function() {
...
@@ -45,11 +45,20 @@ $(function() {
},
},
{
"data"
:
'jobDesc'
,
"visible"
:
true
,
"width"
:
'20%'
},
{
"data"
:
'jobDesc'
,
"visible"
:
true
,
"width"
:
'20%'
},
{
{
"data"
:
'
executorHandler
'
,
"data"
:
'
glueType
'
,
"width"
:
'20%'
,
"width"
:
'20%'
,
"visible"
:
true
,
"visible"
:
true
,
"render"
:
function
(
data
,
type
,
row
)
{
"render"
:
function
(
data
,
type
,
row
)
{
return
(
row
.
glueSwitch
>
0
)?
"GLUE模式"
:
data
;
if
(
'GLUE_GROOVY'
==
row
.
glueType
)
{
return
"GLUE模式(Java)"
;
}
else
if
(
'GLUE_SHELL'
==
row
.
glueType
)
{
return
"GLUE模式(Shell)"
;
}
else
if
(
'GLUE_PYTHON'
==
row
.
glueType
)
{
return
"GLUE模式(Python)"
;
}
else
if
(
'BEAN'
==
row
.
glueType
)
{
return
row
.
executorHandler
;
}
return
row
.
executorHandler
;
}
}
},
},
{
"data"
:
'executorParam'
,
"visible"
:
false
},
{
"data"
:
'executorParam'
,
"visible"
:
false
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment