qdone 2.0.45-alpha → 2.0.46-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.
|
@@ -165,7 +165,8 @@ class JobExecutor {
|
|
|
165
165
|
for (const failed of result.Failed) {
|
|
166
166
|
console.error('FAILED_TO_EXTEND_JOB', { failedEntry: failed, job: this.jobsByMessageId[failed.Id] });
|
|
167
167
|
// ensure that we clean this one up so it doesn't generate api calls
|
|
168
|
-
this.jobsByMessageId[failed.Id]
|
|
168
|
+
if (this.jobsByMessageId[failed.Id])
|
|
169
|
+
this.jobsByMessageId[failed.Id].status = 'failed';
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
172
|
if (result.Successful) {
|
|
@@ -208,7 +209,8 @@ class JobExecutor {
|
|
|
208
209
|
for (const failed of result.Failed) {
|
|
209
210
|
console.error('FAILED_TO_DELETE_JOB', { failedEntry: failed, job: this.jobsByMessageId[failed.Id] });
|
|
210
211
|
// ensure that we clean this one up so it doesn't generate api calls
|
|
211
|
-
this.jobsByMessageId[failed.Id]
|
|
212
|
+
if (this.jobsByMessageId[failed.Id])
|
|
213
|
+
this.jobsByMessageId[failed.Id].status = 'failed';
|
|
212
214
|
}
|
|
213
215
|
}
|
|
214
216
|
if (result.Successful) {
|
package/package.json
CHANGED
|
@@ -169,7 +169,7 @@ export class JobExecutor {
|
|
|
169
169
|
for (const failed of result.Failed) {
|
|
170
170
|
console.error('FAILED_TO_EXTEND_JOB', { failedEntry: failed, job: this.jobsByMessageId[failed.Id] })
|
|
171
171
|
// ensure that we clean this one up so it doesn't generate api calls
|
|
172
|
-
this.jobsByMessageId[failed.Id].status = 'failed'
|
|
172
|
+
if (this.jobsByMessageId[failed.Id]) this.jobsByMessageId[failed.Id].status = 'failed'
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
if (result.Successful) {
|
|
@@ -213,7 +213,7 @@ export class JobExecutor {
|
|
|
213
213
|
for (const failed of result.Failed) {
|
|
214
214
|
console.error('FAILED_TO_DELETE_JOB', { failedEntry: failed, job: this.jobsByMessageId[failed.Id] })
|
|
215
215
|
// ensure that we clean this one up so it doesn't generate api calls
|
|
216
|
-
this.jobsByMessageId[failed.Id].status = 'failed'
|
|
216
|
+
if (this.jobsByMessageId[failed.Id]) this.jobsByMessageId[failed.Id].status = 'failed'
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
if (result.Successful) {
|