Skip to content

warnellw/camunda8-sdk-reproduction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

camunda8-reproduction

A minimal reproduction for demonstrating how canceled long-poll promises are logged as errors during graceful shutdown in @camunda8/sdk

Prerequisites

  • Node.js v22 (as specified in the package.json)

Setup

  1. Clone the repo
  2. Install dependencies (npm install)
  3. Update the Camunda connection placeholders in reproduction.ts

Usage

Run the reproduction script:

npm run start

This will:

  1. Fetch and log the Camunda 8 topology
  2. Start a single-job worker of type test-job
  3. Wait 5 seconds to activate a job
  4. Trigger a graceful shutdown (worker.stop())
  5. Wait 1 second to let the canceled long-poll promise surface the errors

Expected Behavior

When the worker shuts down gracefully, any in-flight activation requests should be canceled silently without logging errors.

Observed Behavior

Instead, the SDK logs two errors:

error: Error during job worker poll
error: Promise was canceled

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors