screwdriver-buildcluster-queue-worker 2.23.2 → 2.23.3
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 +1 -1
- package/receiver.js +7 -1
package/package.json
CHANGED
package/receiver.js
CHANGED
|
@@ -115,6 +115,13 @@ const onMessage = data => {
|
|
|
115
115
|
thread.kill();
|
|
116
116
|
})
|
|
117
117
|
.on('error', async error => {
|
|
118
|
+
thread.kill();
|
|
119
|
+
if (['403', '404'].includes(error.message.substring(0, 3))) {
|
|
120
|
+
channelWrapper.ack(data);
|
|
121
|
+
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
118
125
|
if (retryCount >= messageReprocessLimit) {
|
|
119
126
|
logger.info(`acknowledge, max retries exceeded for ${job}`);
|
|
120
127
|
try {
|
|
@@ -131,7 +138,6 @@ const onMessage = data => {
|
|
|
131
138
|
);
|
|
132
139
|
channelWrapper.nack(data, false, false);
|
|
133
140
|
}
|
|
134
|
-
thread.kill();
|
|
135
141
|
})
|
|
136
142
|
.on('exit', () => {
|
|
137
143
|
logger.info(`thread terminated for ${job} `);
|