@tiledesk/tiledesk-server 2.4.18 → 2.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        package/package.json
    CHANGED
    
    
| @@ -27,7 +27,8 @@ if (process.env.ENABLE_PERSISTENT_QUEUE == true || process.env.ENABLE_PERSISTENT | |
| 27 27 |  | 
| 28 28 | 
             
            var exchange = process.env.QUEUE_EXCHANGE_TOPIC || 'amq.topic';
         | 
| 29 29 |  | 
| 30 | 
            -
             | 
| 30 | 
            +
            var queueName = process.env.QUEUE_NAME || 'jobs';
         | 
| 31 | 
            +
            winston.info("Durable queue: " + durable + " Persistent queue: " + persistent + " Exchange topic: " + exchange+ " Queue name: " + queueName);
         | 
| 31 32 |  | 
| 32 33 |  | 
| 33 34 | 
             
            function start() {
         | 
| @@ -129,7 +130,7 @@ function startWorker() { | |
| 129 130 | 
             
                    // durable: true
         | 
| 130 131 | 
             
                  });
         | 
| 131 132 |  | 
| 132 | 
            -
                  ch.assertQueue( | 
| 133 | 
            +
                  ch.assertQueue(queueName, { durable: durable }, function(err, _ok) {
         | 
| 133 134 | 
             
                  // ch.assertQueue("jobs", { durable: true }, function(err, _ok) {
         | 
| 134 135 | 
             
                    if (closeOnErr(err)) return;
         | 
| 135 136 | 
             
                    ch.bindQueue(_ok.queue, exchange, "request_create", {}, function(err3, oka) {
         | 
| @@ -175,7 +176,7 @@ function startWorker() { | |
| 175 176 | 
             
                    });
         | 
| 176 177 |  | 
| 177 178 |  | 
| 178 | 
            -
                    ch.consume( | 
| 179 | 
            +
                    ch.consume(queueName, processMsg, { noAck: false });
         | 
| 179 180 | 
             
                    winston.info("Worker is started");
         | 
| 180 181 | 
             
                  });
         | 
| 181 182 |  |