screwdriver-buildcluster-queue-worker 3.0.7 → 3.0.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/receiver.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-buildcluster-queue-worker",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "An amqp connection manager implementation that consumes jobs from Rabbitmq queue.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/receiver.js CHANGED
@@ -139,8 +139,8 @@ const onMessage = data => {
139
139
  channelWrapper.nack(data, false, false);
140
140
  }
141
141
  })
142
- .on('exit', () => {
143
- logger.info(`thread terminated for ${job} `);
142
+ .on('exit', exitCode => {
143
+ logger.info(`thread exit code ${exitCode} terminated for ${job}`);
144
144
  });
145
145
  }
146
146
  } catch (err) {
@@ -208,8 +208,8 @@ const onRetryMessage = async data => {
208
208
  }
209
209
  thread.kill();
210
210
  })
211
- .on('exit', () => {
212
- logger.info(`thread terminated for ${job} `);
211
+ .on('exit', exitCode => {
212
+ logger.info(`thread exit code ${exitCode} terminated for ${job}`);
213
213
  });
214
214
  } catch (err) {
215
215
  logger.error(`${retryQueue}: error ${err}, acknowledge data: ${data} payload: ${data.content} `);