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
73b6484d
authored
Jul 23, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
coding
parent
3e5bc1e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 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/action/RunAction.java
xxl-job-core/src/main/java/com/xxl/job/core/router/HandlerRouter.java
View file @
73b6484d
...
@@ -40,7 +40,8 @@ public class HandlerRouter {
...
@@ -40,7 +40,8 @@ public class HandlerRouter {
JobThread
jobThread
=
new
JobThread
(
handler
);
JobThread
jobThread
=
new
JobThread
(
handler
);
jobThread
.
start
();
jobThread
.
start
();
logger
.
info
(
">>>>>>>>>>> xxl-job regist JobThread success, jobkey:{}, handler:{}"
,
new
Object
[]{
jobkey
,
handler
});
logger
.
info
(
">>>>>>>>>>> xxl-job regist JobThread success, jobkey:{}, handler:{}"
,
new
Object
[]{
jobkey
,
handler
});
return
HandlerRouter
.
JobThreadRepository
.
put
(
jobkey
,
jobThread
);
// putIfAbsent
HandlerRouter
.
JobThreadRepository
.
put
(
jobkey
,
jobThread
);
// putIfAbsent | oh my god, map's put method return the old value!!!
return
jobThread
;
}
}
public
static
JobThread
loadJobThread
(
String
jobKey
){
public
static
JobThread
loadJobThread
(
String
jobKey
){
return
HandlerRouter
.
JobThreadRepository
.
get
(
jobKey
);
return
HandlerRouter
.
JobThreadRepository
.
get
(
jobKey
);
...
...
xxl-job-core/src/main/java/com/xxl/job/core/router/action/RunAction.java
View file @
73b6484d
...
@@ -61,11 +61,6 @@ public class RunAction extends IAction {
...
@@ -61,11 +61,6 @@ public class RunAction extends IAction {
}
}
}
}
// sometime, cmap.get can not return given value, i do not know why
if
(
jobThread
==
null
)
{
jobThread
=
HandlerRouter
.
loadJobThread
(
jobKey
);
}
// push data to queue
// push data to queue
jobThread
.
pushTriggerQueue
(
requestModel
);
jobThread
.
pushTriggerQueue
(
requestModel
);
return
new
ResponseModel
(
ResponseModel
.
SUCCESS
,
null
);
return
new
ResponseModel
(
ResponseModel
.
SUCCESS
,
null
);
...
...
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