ezlogs-nextjs 0.2.0 → 0.3.0

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.
@@ -19,6 +19,10 @@ interface BullWorkerLike {
19
19
  on: Function;
20
20
  off?: Function;
21
21
  name?: string;
22
+ /** BullMQ internal: the processor `callProcessJob` invokes. */
23
+ processFn?: Function;
24
+ /** BullMQ internal: calls `this.processFn(job, token, signal)`. */
25
+ callProcessJob?: Function;
22
26
  }
23
27
  /**
24
28
  * Patches `queue.add` (and `queue.addBulk` when present) so each
@@ -30,9 +34,10 @@ interface BullWorkerLike {
30
34
  */
31
35
  declare function wrapBullQueue<T extends BullQueueLike>(queue: T): T;
32
36
  /**
33
- * Subscribes capture listeners to a BullMQ Worker. Each completed /
34
- * failed job emits one event. We use `attemptsMade` for retry_count
35
- * (parity with Sidekiq's `retry_count`).
37
+ * Captures a BullMQ Worker's jobs: one event per run, with the
38
+ * processor running inside the job's correlation scope (see the file
39
+ * header). Sandboxed processors (a file path) run in a child process:
40
+ * the job event is still captured, their DB writes are not tagged.
36
41
  *
37
42
  * Idempotent — calling on the same worker twice is a no-op.
38
43
  */
@@ -19,6 +19,10 @@ interface BullWorkerLike {
19
19
  on: Function;
20
20
  off?: Function;
21
21
  name?: string;
22
+ /** BullMQ internal: the processor `callProcessJob` invokes. */
23
+ processFn?: Function;
24
+ /** BullMQ internal: calls `this.processFn(job, token, signal)`. */
25
+ callProcessJob?: Function;
22
26
  }
23
27
  /**
24
28
  * Patches `queue.add` (and `queue.addBulk` when present) so each
@@ -30,9 +34,10 @@ interface BullWorkerLike {
30
34
  */
31
35
  declare function wrapBullQueue<T extends BullQueueLike>(queue: T): T;
32
36
  /**
33
- * Subscribes capture listeners to a BullMQ Worker. Each completed /
34
- * failed job emits one event. We use `attemptsMade` for retry_count
35
- * (parity with Sidekiq's `retry_count`).
37
+ * Captures a BullMQ Worker's jobs: one event per run, with the
38
+ * processor running inside the job's correlation scope (see the file
39
+ * header). Sandboxed processors (a file path) run in a child process:
40
+ * the job event is still captured, their DB writes are not tagged.
36
41
  *
37
42
  * Idempotent — calling on the same worker twice is a no-op.
38
43
  */