Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
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
liyuan
byit-myth-job
Commits
b0e75229
Commit
b0e75229
authored
Aug 03, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改RPC的超时时间
parent
f6049abd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
RunJavaServiceImpl.java
...c/main/java/com/byit/service/impl/RunJavaServiceImpl.java
+1
-1
RunScriptServiceImpl.java
...main/java/com/byit/service/impl/RunScriptServiceImpl.java
+1
-1
JavaTaskThreadRunHelper.java
.../java/com/byit/thread/helper/JavaTaskThreadRunHelper.java
+2
-1
PluginClientInitialization.java
...c/main/java/com/byit/init/PluginClientInitialization.java
+2
-1
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/impl/RunJavaServiceImpl.java
View file @
b0e75229
...
...
@@ -13,7 +13,7 @@ import org.springframework.stereotype.Service;
*/
@Service
public
class
RunJavaServiceImpl
implements
RunJavaService
{
@TaskClient
@TaskClient
(
timeout
=
30000
)
private
TaskServer
taskServer
;
@Override
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/impl/RunScriptServiceImpl.java
View file @
b0e75229
...
...
@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
*/
@Service
public
class
RunScriptServiceImpl
implements
RunScriptService
{
@RpcReference
@RpcReference
(
timeout
=
30000
)
private
ScriptExecutorService
scriptExecutorService
;
@Override
public
DispatchResponseDto
runScript
(
ScriptDto
scriptDto
)
{
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/JavaTaskThreadRunHelper.java
View file @
b0e75229
...
...
@@ -48,8 +48,9 @@ public class JavaTaskThreadRunHelper extends BaseThreadRunHelper {
javaTaskService
.
deleteJob
(
javaTask
.
getId
());
}
}
else
{
javaTaskAndLogService
.
updateJavaTaskAndSaveLog
(
javaTask
);
}
javaTaskAndLogService
.
updateJavaTaskAndSaveLog
(
javaTask
);
}
}
return
JAVA_TASK_WAIT_TIME
;
...
...
byit-plugin-core/myth-plugin-rpc-client/src/main/java/com/byit/init/PluginClientInitialization.java
View file @
b0e75229
...
...
@@ -13,6 +13,7 @@ import org.apache.commons.lang3.StringUtils;
import
java.lang.reflect.Proxy
;
import
java.util.TreeSet
;
import
java.util.UUID
;
import
java.util.concurrent.TimeUnit
;
/**
* 插件端 客户端的数据初始化
...
...
@@ -88,7 +89,7 @@ public class PluginClientInitialization {
//发送请求
pluginClient
.
send
(
address
,
pluginRpcRequestPacket
);
//获取结果
PluginRpcResponsePacket
pluginRpcResponsePacket
=
pluginFutureResponse
.
get
();
PluginRpcResponsePacket
pluginRpcResponsePacket
=
pluginFutureResponse
.
get
(
timeout
,
TimeUnit
.
MILLISECONDS
);
pluginRpcResponsePacket
.
setRunIp
(
address
);
return
pluginRpcResponsePacket
;
}
catch
(
Exception
e
){
...
...
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