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
a3bef921
authored
Apr 27, 2017
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
脚本任务实现
parent
113e70ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
View file @
a3bef921
...
@@ -192,12 +192,13 @@ public class DemoGlueJobHandler extends IJobHandler {
...
@@ -192,12 +192,13 @@ 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
do
do
echo "shell : $item"
echo "shell : $item"
sleep 1s
sleep 1s
done
done
echo "Good bye!"
echo "Good bye!"
...
@@ -216,6 +217,7 @@ logging.info('xxl-job: hello python')
...
@@ -216,6 +217,7 @@ 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>
...
...
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