qdone 2.0.11-alpha → 2.0.12-alpha
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.
|
@@ -154,7 +154,8 @@ var JobExecutor = /** @class */ (function () {
|
|
|
154
154
|
result = _k.sent();
|
|
155
155
|
debug('ChangeMessageVisibilityBatch returned', result);
|
|
156
156
|
this.stats.sqsCalls++;
|
|
157
|
-
|
|
157
|
+
if (result.Successful)
|
|
158
|
+
this.stats.timeoutsExtended += result.Successful.length || 0;
|
|
158
159
|
return [3 /*break*/, 2];
|
|
159
160
|
case 4:
|
|
160
161
|
if (this.opt.verbose) {
|
|
@@ -207,7 +208,8 @@ var JobExecutor = /** @class */ (function () {
|
|
|
207
208
|
case 9:
|
|
208
209
|
result = _k.sent();
|
|
209
210
|
this.stats.sqsCalls++;
|
|
210
|
-
|
|
211
|
+
if (result.Successful)
|
|
212
|
+
this.stats.jobsDeleted += result.Successful.length || 0;
|
|
211
213
|
debug('DeleteMessageBatch returned', result);
|
|
212
214
|
return [3 /*break*/, 8];
|
|
213
215
|
case 10:
|
package/package.json
CHANGED
|
@@ -107,7 +107,7 @@ export class JobExecutor {
|
|
|
107
107
|
const result = await getSQSClient().send(new ChangeMessageVisibilityBatchCommand(input))
|
|
108
108
|
debug('ChangeMessageVisibilityBatch returned', result)
|
|
109
109
|
this.stats.sqsCalls++
|
|
110
|
-
this.stats.timeoutsExtended +=
|
|
110
|
+
if (result.Successful) this.stats.timeoutsExtended += result.Successful.length || 0
|
|
111
111
|
// TODO Sentry
|
|
112
112
|
}
|
|
113
113
|
if (this.opt.verbose) {
|
|
@@ -143,7 +143,7 @@ export class JobExecutor {
|
|
|
143
143
|
debug({ DeleteMessageBatch: input })
|
|
144
144
|
const result = await getSQSClient().send(new DeleteMessageBatchCommand(input))
|
|
145
145
|
this.stats.sqsCalls++
|
|
146
|
-
this.stats.jobsDeleted +=
|
|
146
|
+
if (result.Successful) this.stats.jobsDeleted += result.Successful.length || 0
|
|
147
147
|
debug('DeleteMessageBatch returned', result)
|
|
148
148
|
// TODO Sentry
|
|
149
149
|
}
|