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
7c0d119f
authored
May 22, 2019
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update document
parent
a73ecb63
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobScheduleHelper.java
xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobScheduleHelper.java
View file @
7c0d119f
...
@@ -38,13 +38,13 @@ public class JobScheduleHelper {
...
@@ -38,13 +38,13 @@ public class JobScheduleHelper {
public
void
run
()
{
public
void
run
()
{
try
{
try
{
TimeUnit
.
MILLISECONDS
.
sleep
(
5000
);
TimeUnit
.
MILLISECONDS
.
sleep
(
5000
+
System
.
currentTimeMillis
()%
1000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
if
(!
toStop
)
{
if
(!
toStop
)
{
logger
.
error
(
e
.
getMessage
(),
e
);
logger
.
error
(
e
.
getMessage
(),
e
);
}
}
}
}
logger
.
info
(
">>>>>>>>> init xxl-job admin scheduler
running
."
);
logger
.
info
(
">>>>>>>>> init xxl-job admin scheduler
success
."
);
while
(!
toStop
)
{
while
(!
toStop
)
{
...
@@ -166,6 +166,15 @@ public class JobScheduleHelper {
...
@@ -166,6 +166,15 @@ public class JobScheduleHelper {
ringThread
=
new
Thread
(
new
Runnable
()
{
ringThread
=
new
Thread
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
try
{
TimeUnit
.
MILLISECONDS
.
sleep
(
System
.
currentTimeMillis
()%
1000
);
}
catch
(
InterruptedException
e
)
{
if
(!
toStop
)
{
logger
.
error
(
e
.
getMessage
(),
e
);
}
}
int
lastSecond
=
-
1
;
int
lastSecond
=
-
1
;
while
(!
toStop
)
{
while
(!
toStop
)
{
...
...
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