Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 49333d1

Browse files
authored
Merge pull request #62 from jwulf/clear-timeout
Clear timeout
2 parents 8e81c16 + 304eb4f commit 49333d1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
33
docs
4+
.DS_Store

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zeebe-node",
3-
"version": "v0.20.0",
3+
"version": "v0.20.1",
44
"description": "A Node.js client library for the Zeebe Microservices Orchestration Engine.",
55
"keywords": [
66
"zeebe",

src/zb/ZBWorker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export class ZBWorker<
255255
jobKey: job.key,
256256
variables: completedVariables,
257257
})
258-
clearInterval(timeoutCancel)
258+
clearTimeout(timeoutCancel)
259259
if (!taskTimedout) {
260260
this.drainOne()
261261
this.logger.debug(
@@ -282,7 +282,7 @@ export class ZBWorker<
282282
this.logger.debug(
283283
`Failed job ${job.key} - ${errorMessage}`
284284
)
285-
clearInterval(timeoutCancel)
285+
clearTimeout(timeoutCancel)
286286
}
287287
return shadowWorkerCallback
288288
})()

0 commit comments

Comments
 (0)