@tiledesk/tiledesk-server 2.4.31 → 2.4.32
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -70,6 +70,7 @@ findUnresponsiveRequests() {
|
|
70
70
|
|
71
71
|
|
72
72
|
// TODO escludi i ticket offline
|
73
|
+
// var query = { };
|
73
74
|
var query = {hasBot:true, status: { $lt: 1000 }, createdAt: { $lte :new Date(Date.now() - this.queryAfterTimeout ).toISOString()} };
|
74
75
|
|
75
76
|
if (this.queryProject) {
|
@@ -106,11 +107,14 @@ findUnresponsiveRequests() {
|
|
106
107
|
|
107
108
|
requests.forEach(request => {
|
108
109
|
i++;
|
109
|
-
delay = that.delayBeforeClosing*i;
|
110
|
+
delay = 2*that.delayBeforeClosing*i;
|
111
|
+
winston.debug("CloseBotUnresponsiveRequestTask: delay : " + delay);
|
112
|
+
|
110
113
|
setTimeout(function(){
|
111
114
|
|
112
115
|
// TODO aggiungi uno sleep
|
113
|
-
winston.debug("********unresponsive request "
|
116
|
+
winston.debug("********unresponsive request : "+ request.first_text);
|
117
|
+
// winston.debug("********unresponsive request ", request);
|
114
118
|
|
115
119
|
// closeRequestByRequestId(request_id, id_project, skipStatsUpdate, notify, closed_by)
|
116
120
|
const closed_by = "_bot_unresponsive";
|