Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha #358

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Alpha #358

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ The SDK uses the [`debug`](https://github.com/debug-js/debug) library. To enable
| `camunda:oauth` | OAuth Token Exchange |
| `camunda:grpc` | Zeebe gRPC channel |
| `camunda:worker` | Zeebe Worker |
| `camunda:worker:verbose`| Zeebe Worker (additional detail) |
| `camunda:zeebeclient` | Zeebe Client |

Here is an example of turning on debugging for the OAuth and Operate components:
Expand Down
4 changes: 3 additions & 1 deletion src/zeebe/lib/ZBWorkerBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import { ZBClientOptions } from './interfaces-published-contract'
import { parseVariablesAndCustomHeadersToJSON } from '.'

const debug = d('camunda:worker')
const verbose = d('camunda:worker:verbose')

debug('Loaded ZBWorkerBase')

const MIN_ACTIVE_JOBS_RATIO_BEFORE_ACTIVATING_JOBS = 0.3
Expand Down Expand Up @@ -475,7 +477,7 @@ You should call only one job action method in the worker handler. This is a bug
workerIsClosing ||
insufficientCapacityAvailable
) {
debug('Worker polling blocked', {
verbose('Worker polling blocked', {
pollAlreadyInProgress,
workerIsClosing,
insufficientCapacityAvailable,
Expand Down
Loading