Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
middleware-automatic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenjunjie
middleware-automatic
Commits
ded8d2c4
Commit
ded8d2c4
authored
May 16, 2023
by
liuyu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release' into 'master'
Release See merge request
!27
parents
c829e686
85383067
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/config/TaskPoolConfig.java
+1
-1
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/holder/TaskServiceHandler.java
+0
-1
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceCommon.java
+2
-1
No files found.
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/config/TaskPoolConfig.java
View file @
ded8d2c4
...
@@ -32,6 +32,6 @@ public class TaskPoolConfig {
...
@@ -32,6 +32,6 @@ public class TaskPoolConfig {
@Bean
(
"templateExecutor"
)
@Bean
(
"templateExecutor"
)
public
ThreadPoolExecutorTimeout
templateExecutor
()
{
public
ThreadPoolExecutorTimeout
templateExecutor
()
{
return
new
ThreadPoolExecutorTimeout
(
1000L
*
60
*
30
,
10
,
20
,
10000L
,
return
new
ThreadPoolExecutorTimeout
(
1000L
*
60
*
30
,
10
,
20
,
10000L
,
TimeUnit
.
MILLISECONDS
,
10
,
"模板任务线程池"
);
TimeUnit
.
MILLISECONDS
,
10
0
,
"模板任务线程池"
);
}
}
}
}
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/holder/TaskServiceHandler.java
View file @
ded8d2c4
...
@@ -36,7 +36,6 @@ public class TaskServiceHandler {
...
@@ -36,7 +36,6 @@ public class TaskServiceHandler {
if
(
taskService
.
thresholdWarn
())
{
if
(
taskService
.
thresholdWarn
())
{
log
.
error
(
"任务类型:{},当前运行任务已到达最大核心数"
,
autoTask
.
getType
());
log
.
error
(
"任务类型:{},当前运行任务已到达最大核心数"
,
autoTask
.
getType
());
}
}
log
.
info
(
"任务类型:{},开始执行,信息:{}"
,
autoTask
.
getType
(),
JSONObject
.
toJSONString
(
autoTask
));
taskService
.
runTask
(
autoTask
);
taskService
.
runTask
(
autoTask
);
return
taskType
.
getCacheId
();
return
taskType
.
getCacheId
();
}
}
...
...
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceCommon.java
View file @
ded8d2c4
...
@@ -73,8 +73,9 @@ public class TaskServiceCommon extends BaseTaskTypePair<TaskServiceCommon.TaskCo
...
@@ -73,8 +73,9 @@ public class TaskServiceCommon extends BaseTaskTypePair<TaskServiceCommon.TaskCo
log
.
error
(
"本地任务可用数据为空,taskType:{}"
,
autoTask
.
getType
());
log
.
error
(
"本地任务可用数据为空,taskType:{}"
,
autoTask
.
getType
());
}
}
autoMarkExecutor
.
execute
(()
->
{
autoMarkExecutor
.
execute
(()
->
{
lo
g
.
info
(
"自动标注任务"
);
lo
ng
now
=
System
.
currentTimeMillis
(
);
projectAutoMark
(
dataSourceInfo
);
projectAutoMark
(
dataSourceInfo
);
log
.
info
(
"任务类型:{},开始执行,信息:{}, 耗时:{}"
,
autoTask
.
getType
(),
JSONObject
.
toJSONString
(
autoTask
),
System
.
currentTimeMillis
()
-
now
);
});
});
}
}
...
...
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