Skip to content

Commit

Permalink
Fix node worker (#251)
Browse files Browse the repository at this point in the history
* chore: Update zeebe-node

* fix: Fix zeebe-node worker script

* fix: Add exit code
  • Loading branch information
vsgoulart authored Aug 15, 2023
1 parent 4d12cf1 commit 18223ab
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 35 deletions.
1 change: 1 addition & 0 deletions nodejs/deploy-and-start-instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ void (async () => {
})

console.log(result)
process.exit(0)
})()
4 changes: 2 additions & 2 deletions nodejs/email-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const zbc = new ZBClient({
},
})

zbc.createWorker({
const worker = zbc.createWorker({
taskType: 'email',
taskHandler: (job, _, worker) => {
taskHandler: (job) => {
const { message_content } = job.variables
worker.log(`Sending email with message content: ${message_content}`)
job.complete()
Expand Down
69 changes: 37 additions & 32 deletions nodejs/package-lock.json

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

2 changes: 1 addition & 1 deletion nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
},
"homepage": "https://github.com/camunda/camunda-platform-get-started#readme",
"dependencies": {
"zeebe-node": "^8.1.5"
"zeebe-node": "8.2.5"
}
}

0 comments on commit 18223ab

Please sign in to comment.