@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/dist/fp/index.cjs CHANGED
@@ -12567,7 +12567,7 @@ function createLogger(opts = {}) {
12567
12567
  }
12568
12568
 
12569
12569
  // src/runtime/version.ts
12570
- var packageVersion = "9.0.2";
12570
+ var packageVersion = "9.0.3";
12571
12571
 
12572
12572
  // src/runtime/supportLogger.ts
12573
12573
  var NoopSupportLogger = class {
@@ -13616,17 +13616,14 @@ var JobWorker = class {
13616
13616
  _log;
13617
13617
  constructor(client2, cfg) {
13618
13618
  this._client = client2;
13619
- this._cfg = { pollIntervalMs: 1, autoStart: true, validateSchemas: false, ...cfg };
13620
- if (this._cfg.maxParallelJobs === void 0) {
13621
- throw new Error(
13622
- "maxParallelJobs is required: set it on JobWorkerConfig or via CAMUNDA_WORKER_MAX_CONCURRENT_JOBS (environment variable or CamundaOptions.config override)."
13623
- );
13624
- }
13625
- if (this._cfg.jobTimeoutMs === void 0) {
13626
- throw new Error(
13627
- "jobTimeoutMs is required: set it on JobWorkerConfig or via CAMUNDA_WORKER_TIMEOUT (environment variable or CamundaOptions.config override)."
13628
- );
13629
- }
13619
+ this._cfg = {
13620
+ pollIntervalMs: 1,
13621
+ autoStart: true,
13622
+ validateSchemas: false,
13623
+ maxParallelJobs: 10,
13624
+ jobTimeoutMs: 6e4,
13625
+ ...cfg
13626
+ };
13630
13627
  this._maxParallelJobs = this._cfg.maxParallelJobs;
13631
13628
  this._jobTimeoutMs = this._cfg.jobTimeoutMs;
13632
13629
  this._name = cfg.workerName || `worker-${cfg.jobType}-${++_workerCounter}`;
@@ -13913,17 +13910,14 @@ var ThreadedJobWorker = class {
13913
13910
  constructor(client2, pool, cfg) {
13914
13911
  this._client = client2;
13915
13912
  this._pool = pool;
13916
- this._cfg = { pollIntervalMs: 1, autoStart: true, validateSchemas: false, ...cfg };
13917
- if (this._cfg.maxParallelJobs === void 0) {
13918
- throw new Error(
13919
- "maxParallelJobs is required: set it on ThreadedJobWorkerConfig or via CAMUNDA_WORKER_MAX_CONCURRENT_JOBS (environment variable or CamundaOptions.config override)."
13920
- );
13921
- }
13922
- if (this._cfg.jobTimeoutMs === void 0) {
13923
- throw new Error(
13924
- "jobTimeoutMs is required: set it on ThreadedJobWorkerConfig or via CAMUNDA_WORKER_TIMEOUT (environment variable or CamundaOptions.config override)."
13925
- );
13926
- }
13913
+ this._cfg = {
13914
+ pollIntervalMs: 1,
13915
+ autoStart: true,
13916
+ validateSchemas: false,
13917
+ maxParallelJobs: 10,
13918
+ jobTimeoutMs: 6e4,
13919
+ ...cfg
13920
+ };
13927
13921
  this._maxParallelJobs = this._cfg.maxParallelJobs;
13928
13922
  this._jobTimeoutMs = this._cfg.jobTimeoutMs;
13929
13923
  this._name = cfg.workerName || `threaded-worker-${cfg.jobType}-${++_workerCounter2}`;