@camunda8/orchestration-cluster-api 10.0.0-alpha.40 → 10.0.0-alpha.41

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.
@@ -1,7 +1,7 @@
1
1
  import * as effect_Cause from 'effect/Cause';
2
2
  import * as effect_Types from 'effect/Types';
3
3
  import { Context, Effect, Stream, Duration, Layer, Schedule, Cause, Scope } from 'effect';
4
- import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-DsXh8p3U.cjs';
4
+ import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-HroU9acH.cjs';
5
5
  import 'zod';
6
6
  import '../logger-D-p21VHo.cjs';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import * as effect_Cause from 'effect/Cause';
2
2
  import * as effect_Types from 'effect/Types';
3
3
  import { Context, Effect, Stream, Duration, Layer, Schedule, Cause, Scope } from 'effect';
4
- import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-BsoVLG5C.js';
4
+ import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-BlKXG8gE.js';
5
5
  import 'zod';
6
6
  import '../logger-D-p21VHo.js';
7
7
 
@@ -3,7 +3,7 @@ import {
3
3
  EventualConsistencyTimeoutError,
4
4
  createCamundaClient,
5
5
  nextPageRequest
6
- } from "../chunk-3HNGJ4FZ.js";
6
+ } from "../chunk-267HUCFY.js";
7
7
  import "../chunk-KQ4UL2WX.js";
8
8
  import "../chunk-DGUM43GV.js";
9
9
 
package/dist/index.cjs CHANGED
@@ -14319,7 +14319,7 @@ function createLogger(opts = {}) {
14319
14319
  }
14320
14320
 
14321
14321
  // src/runtime/version.ts
14322
- var packageVersion = "10.0.0-alpha.40";
14322
+ var packageVersion = "10.0.0-alpha.41";
14323
14323
 
14324
14324
  // src/runtime/supportLogger.ts
14325
14325
  var NoopSupportLogger = class {
@@ -15925,7 +15925,7 @@ var JobWorker = class {
15925
15925
  };
15926
15926
 
15927
15927
  // src/runtime/jobActions.ts
15928
- function enrichActivatedJob(raw, client2, log) {
15928
+ function enrichActivatedJob(raw, client2, log, clock = client2.clock) {
15929
15929
  let acknowledged = false;
15930
15930
  const ack = () => {
15931
15931
  if (!acknowledged) {
@@ -15933,7 +15933,11 @@ function enrichActivatedJob(raw, client2, log) {
15933
15933
  job.acknowledged = true;
15934
15934
  }
15935
15935
  };
15936
- const job = { ...raw, log };
15936
+ const job = {
15937
+ ...raw,
15938
+ log,
15939
+ clock: { now: () => clock.now(), sleep: (ms, signal) => clock.sleep(ms, signal) }
15940
+ };
15937
15941
  job.complete = async (variables = {}, result) => {
15938
15942
  try {
15939
15943
  await client2.completeJob({
@@ -16179,7 +16183,7 @@ var ThreadedJobWorker = class {
16179
16183
  const data = {};
16180
16184
  for (const [key, value] of Object.entries(raw)) {
16181
16185
  if (typeof value === "function") continue;
16182
- if (key === "log") continue;
16186
+ if (key === "log" || key === "clock") continue;
16183
16187
  data[key] = value;
16184
16188
  }
16185
16189
  return JSON.parse(JSON.stringify(data));