mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
adjust params
This commit is contained in:
@@ -36,7 +36,7 @@ spider:
|
||||
task:
|
||||
workers: 4
|
||||
rpc:
|
||||
workers: 16
|
||||
workers: 4
|
||||
other:
|
||||
tmppath: "/tmp"
|
||||
version: 0.4.7
|
||||
|
||||
@@ -69,7 +69,7 @@ func RpcClientGetLang(nodeId string, langName string) (lang entity.Lang, err err
|
||||
params := map[string]string{}
|
||||
params["lang"] = langName
|
||||
|
||||
data, err := RpcClientFunc(nodeId, constants.RpcGetLang, params, 10)()
|
||||
data, err := RpcClientFunc(nodeId, constants.RpcGetLang, params, 30)()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
@@ -101,7 +101,7 @@ func RpcClientInstallDep(nodeId string, lang string, depName string) (output str
|
||||
params["lang"] = lang
|
||||
params["dep_name"] = depName
|
||||
|
||||
data, err := RpcClientFunc(nodeId, constants.RpcInstallDep, params, 10)()
|
||||
data, err := RpcClientFunc(nodeId, constants.RpcInstallDep, params, 60)()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
@@ -162,7 +162,7 @@ func RpcClientGetInstalledDepList(nodeId string, lang string) (list []entity.Dep
|
||||
params := map[string]string{}
|
||||
params["lang"] = lang
|
||||
|
||||
data, err := RpcClientFunc(nodeId, constants.RpcGetInstalledDepList, params, 10)()
|
||||
data, err := RpcClientFunc(nodeId, constants.RpcGetInstalledDepList, params, 30)()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user