Skip to content

Commit

Permalink
v2.0.46-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwitt committed May 21, 2024
1 parent 1bd065c commit 0bd632f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qdone",
"version": "2.0.45-alpha",
"version": "2.0.46-alpha",
"description": "A distributed scheduler for SQS",
"type": "module",
"main": "./index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/scheduler/jobExecutor.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class JobExecutor {
for (const failed of result.Failed) {
console.error('FAILED_TO_EXTEND_JOB', { failedEntry: failed, job: this.jobsByMessageId[failed.Id] })
// ensure that we clean this one up so it doesn't generate api calls
this.jobsByMessageId[failed.Id].status = 'failed'
if (this.jobsByMessageId[failed.Id]) this.jobsByMessageId[failed.Id].status = 'failed'
}
}
if (result.Successful) {
Expand Down Expand Up @@ -213,7 +213,7 @@ export class JobExecutor {
for (const failed of result.Failed) {
console.error('FAILED_TO_DELETE_JOB', { failedEntry: failed, job: this.jobsByMessageId[failed.Id] })
// ensure that we clean this one up so it doesn't generate api calls
this.jobsByMessageId[failed.Id].status = 'failed'
if (this.jobsByMessageId[failed.Id]) this.jobsByMessageId[failed.Id].status = 'failed'
}
}
if (result.Successful) {
Expand Down

0 comments on commit 0bd632f

Please sign in to comment.