Commit 78324372 by 宋毅

tj

parent 6b6406ff
...@@ -21,7 +21,7 @@ class ConsumerBase { ...@@ -21,7 +21,7 @@ class ConsumerBase {
counter = 1; counter = 1;
} }
var self = this; var self = this;
this.duplicateInstance.brpop(queuedName, 10800, async function (err, repl) { this.duplicateInstance.brpop(queuedName, 3600, async function (err, repl) {
if (err) { if (err) {
return new Error('doConsumer brpop error :' + err); return new Error('doConsumer brpop error :' + err);
} }
......
...@@ -18,7 +18,7 @@ class PublicConsumer extends ConsumerBase { ...@@ -18,7 +18,7 @@ class PublicConsumer extends ConsumerBase {
} }
var execResult = await this.execPostByTimeOut(params, actionBody.pushUrl); var execResult = await this.execPostByTimeOut(params, actionBody.pushUrl);
var tmpBody = { var tmpBody = {
"opTitle": "队列推送数据记录",// N 操作的业务标题 "opTitle": "队列推送数据记录,推送地址:" + actionBody.pushUrl,// N 操作的业务标题
"identifyCode": actionBody.identifyCode || "",// Y 操作的业务标识 "identifyCode": actionBody.identifyCode || "",// Y 操作的业务标识
"indexName": "push-logs",// Y es索引值,同一个项目用一个值 "indexName": "push-logs",// Y es索引值,同一个项目用一个值
"messageBody": params, "messageBody": params,
......
...@@ -43,6 +43,7 @@ var settings = { ...@@ -43,6 +43,7 @@ var settings = {
password: ENVINPUT.DB_PWD, password: ENVINPUT.DB_PWD,
config: { config: {
host: ENVINPUT.DB_HOST, host: ENVINPUT.DB_HOST,
port: ENVINPUT.DB_PORT,
dialect: 'mysql', dialect: 'mysql',
operatorsAliases: false, operatorsAliases: false,
pool: { pool: {
...@@ -55,10 +56,10 @@ var settings = { ...@@ -55,10 +56,10 @@ var settings = {
}, },
timezone: '+08:00', timezone: '+08:00',
debug: false, debug: false,
dialectOptions: { // dialectOptions: {
requestTimeout: 999999, // requestTimeout: 999999,
// instanceName:'DEV' // // instanceName:'DEV'
} //设置MSSQL超时时间 // } //设置MSSQL超时时间
}, },
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment