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
8fde5bed
authored
Sep 19, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调度超时和Handler匹配不到时,调度状态优化
parent
de2dece0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
xxl-job-core/src/main/java/com/xxl/job/core/router/HandlerRouter.java
xxl-job-core/src/main/java/com/xxl/job/core/router/HandlerRouter.java
View file @
8fde5bed
...
@@ -85,13 +85,13 @@ public class HandlerRouter {
...
@@ -85,13 +85,13 @@ public class HandlerRouter {
// timestamp check
// timestamp check
if
(
System
.
currentTimeMillis
()
-
requestModel
.
getTimestamp
()
>
60000
)
{
if
(
System
.
currentTimeMillis
()
-
requestModel
.
getTimestamp
()
>
60000
)
{
return
new
ResponseModel
(
ResponseModel
.
SUCCESS
,
"Timestamp Timeout."
);
return
new
ResponseModel
(
ResponseModel
.
FAIL
,
"Timestamp Timeout."
);
}
}
// match action
// match action
IAction
action
=
ActionRepository
.
matchAction
(
requestModel
.
getAction
());
IAction
action
=
ActionRepository
.
matchAction
(
requestModel
.
getAction
());
if
(
action
==
null
)
{
if
(
action
==
null
)
{
return
new
ResponseModel
(
ResponseModel
.
SUCCESS
,
"Action match fail."
);
return
new
ResponseModel
(
ResponseModel
.
FAIL
,
"Action match fail."
);
}
}
return
action
.
execute
(
requestModel
);
return
action
.
execute
(
requestModel
);
...
...
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