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
7d31e983
authored
Mar 12, 2017
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
8d99be35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java
View file @
7d31e983
...
...
@@ -168,6 +168,7 @@ public class XxlJobServiceImpl implements IXxlJobService {
// stage job info
XxlJobInfo
exists_jobInfo
=
xxlJobInfoDao
.
loadById
(
jobInfo
.
getId
());
String
old_cron
=
exists_jobInfo
.
getJobCron
();
if
(
exists_jobInfo
==
null
)
{
return
new
ReturnT
<
String
>(
500
,
"参数异常"
);
}
...
...
@@ -181,19 +182,16 @@ public class XxlJobServiceImpl implements IXxlJobService {
exists_jobInfo
.
setExecutorParam
(
jobInfo
.
getExecutorParam
());
exists_jobInfo
.
setGlueSwitch
(
jobInfo
.
getGlueSwitch
());
exists_jobInfo
.
setChildJobKey
(
jobInfo
.
getChildJobKey
());
try
{
// fresh quartz
boolean
ret
=
XxlJobDynamicScheduler
.
rescheduleJob
(
String
.
valueOf
(
exists_jobInfo
.
getJobGroup
()),
String
.
valueOf
(
exists_jobInfo
.
getId
()),
exists_jobInfo
.
getJobCron
());
if
(
ret
)
{
xxlJobInfoDao
.
update
(
exists_jobInfo
);
return
ReturnT
.
SUCCESS
;
}
else
{
return
new
ReturnT
<
String
>(
500
,
"更新任务失败"
);
}
}
catch
(
SchedulerException
e
)
{
logger
.
error
(
""
,
e
);
}
xxlJobInfoDao
.
update
(
exists_jobInfo
);
try
{
// fresh quartz
boolean
ret
=
XxlJobDynamicScheduler
.
rescheduleJob
(
String
.
valueOf
(
exists_jobInfo
.
getJobGroup
()),
String
.
valueOf
(
exists_jobInfo
.
getId
()),
exists_jobInfo
.
getJobCron
());
return
ret
?
ReturnT
.
SUCCESS
:
ReturnT
.
FAIL
;
}
catch
(
SchedulerException
e
)
{
logger
.
error
(
""
,
e
);
}
return
ReturnT
.
FAIL
;
}
...
...
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
View file @
7d31e983
...
...
@@ -11,7 +11,7 @@ $(function() {
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
"#jobId"
).
html
(
'<option value="" >请选择</option>'
);
$
(
"#jobId"
).
html
(
'<option value="
0
" >请选择</option>'
);
$
.
each
(
data
.
content
,
function
(
n
,
value
)
{
$
(
"#jobId"
).
append
(
'<option value="'
+
value
.
id
+
'" >'
+
value
.
jobDesc
+
'</option>'
);
});
...
...
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