@camunda8/orchestration-cluster-api 9.0.2 → 9.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [9.0.3](https://github.com/camunda/orchestration-cluster-api-js/compare/v9.0.2...v9.0.3) (2026-04-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add built-in defaults for maxParallelJobs and jobTimeoutMs in worker constructors ([23674c4](https://github.com/camunda/orchestration-cluster-api-js/commit/23674c4a853718b7546bd7b67184382823666f8f)), closes [#145](https://github.com/camunda/orchestration-cluster-api-js/issues/145)
7
+
1
8
  ## [9.0.2](https://github.com/camunda/orchestration-cluster-api-js/compare/v9.0.1...v9.0.2) (2026-04-14)
2
9
 
3
10
 
@@ -129,17 +129,14 @@ var JobWorker = class {
129
129
  _log;
130
130
  constructor(client2, cfg) {
131
131
  this._client = client2;
132
- this._cfg = { pollIntervalMs: 1, autoStart: true, validateSchemas: false, ...cfg };
133
- if (this._cfg.maxParallelJobs === void 0) {
134
- throw new Error(
135
- "maxParallelJobs is required: set it on JobWorkerConfig or via CAMUNDA_WORKER_MAX_CONCURRENT_JOBS (environment variable or CamundaOptions.config override)."
136
- );
137
- }
138
- if (this._cfg.jobTimeoutMs === void 0) {
139
- throw new Error(
140
- "jobTimeoutMs is required: set it on JobWorkerConfig or via CAMUNDA_WORKER_TIMEOUT (environment variable or CamundaOptions.config override)."
141
- );
142
- }
132
+ this._cfg = {
133
+ pollIntervalMs: 1,
134
+ autoStart: true,
135
+ validateSchemas: false,
136
+ maxParallelJobs: 10,
137
+ jobTimeoutMs: 6e4,
138
+ ...cfg
139
+ };
143
140
  this._maxParallelJobs = this._cfg.maxParallelJobs;
144
141
  this._jobTimeoutMs = this._cfg.jobTimeoutMs;
145
142
  this._name = cfg.workerName || `worker-${cfg.jobType}-${++_workerCounter}`;
@@ -4412,7 +4409,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
4412
4409
  }
4413
4410
 
4414
4411
  // src/runtime/version.ts
4415
- var packageVersion = "9.0.2";
4412
+ var packageVersion = "9.0.3";
4416
4413
 
4417
4414
  // src/runtime/supportLogger.ts
4418
4415
  var NoopSupportLogger = class {
@@ -5521,17 +5518,14 @@ var ThreadedJobWorker = class {
5521
5518
  constructor(client2, pool, cfg) {
5522
5519
  this._client = client2;
5523
5520
  this._pool = pool;
5524
- this._cfg = { pollIntervalMs: 1, autoStart: true, validateSchemas: false, ...cfg };
5525
- if (this._cfg.maxParallelJobs === void 0) {
5526
- throw new Error(
5527
- "maxParallelJobs is required: set it on ThreadedJobWorkerConfig or via CAMUNDA_WORKER_MAX_CONCURRENT_JOBS (environment variable or CamundaOptions.config override)."
5528
- );
5529
- }
5530
- if (this._cfg.jobTimeoutMs === void 0) {
5531
- throw new Error(
5532
- "jobTimeoutMs is required: set it on ThreadedJobWorkerConfig or via CAMUNDA_WORKER_TIMEOUT (environment variable or CamundaOptions.config override)."
5533
- );
5534
- }
5521
+ this._cfg = {
5522
+ pollIntervalMs: 1,
5523
+ autoStart: true,
5524
+ validateSchemas: false,
5525
+ maxParallelJobs: 10,
5526
+ jobTimeoutMs: 6e4,
5527
+ ...cfg
5528
+ };
5535
5529
  this._maxParallelJobs = this._cfg.maxParallelJobs;
5536
5530
  this._jobTimeoutMs = this._cfg.jobTimeoutMs;
5537
5531
  this._name = cfg.workerName || `threaded-worker-${cfg.jobType}-${++_workerCounter2}`;
@@ -16721,4 +16715,4 @@ export {
16721
16715
  withTimeoutTE,
16722
16716
  eventuallyTE
16723
16717
  };
16724
- //# sourceMappingURL=chunk-JW2DWK5R.js.map
16718
+ //# sourceMappingURL=chunk-CSMB45H6.js.map