@trigger.dev/redis-worker 4.5.8 → 4.5.9

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/index.d.cts CHANGED
@@ -2173,8 +2173,8 @@ declare const BufferEntrySchema: z.ZodObject<{
2173
2173
  code: string;
2174
2174
  }, string>>;
2175
2175
  }, "strip", z.ZodTypeAny, {
2176
- status: "QUEUED" | "FAILED" | "DRAINING";
2177
2176
  payload: string;
2177
+ status: "QUEUED" | "FAILED" | "DRAINING";
2178
2178
  createdAt: Date;
2179
2179
  runId: string;
2180
2180
  attempts: number;
@@ -2189,8 +2189,8 @@ declare const BufferEntrySchema: z.ZodObject<{
2189
2189
  code: string;
2190
2190
  } | undefined;
2191
2191
  }, {
2192
- status: "QUEUED" | "FAILED" | "DRAINING";
2193
2192
  payload: string;
2193
+ status: "QUEUED" | "FAILED" | "DRAINING";
2194
2194
  createdAt: string;
2195
2195
  runId: string;
2196
2196
  attempts: string;
package/dist/index.d.ts CHANGED
@@ -2173,8 +2173,8 @@ declare const BufferEntrySchema: z.ZodObject<{
2173
2173
  code: string;
2174
2174
  }, string>>;
2175
2175
  }, "strip", z.ZodTypeAny, {
2176
- status: "QUEUED" | "FAILED" | "DRAINING";
2177
2176
  payload: string;
2177
+ status: "QUEUED" | "FAILED" | "DRAINING";
2178
2178
  createdAt: Date;
2179
2179
  runId: string;
2180
2180
  attempts: number;
@@ -2189,8 +2189,8 @@ declare const BufferEntrySchema: z.ZodObject<{
2189
2189
  code: string;
2190
2190
  } | undefined;
2191
2191
  }, {
2192
- status: "QUEUED" | "FAILED" | "DRAINING";
2193
2192
  payload: string;
2193
+ status: "QUEUED" | "FAILED" | "DRAINING";
2194
2194
  createdAt: string;
2195
2195
  runId: string;
2196
2196
  attempts: string;
package/dist/index.js CHANGED
@@ -11396,7 +11396,7 @@ var defaultRetrySettings = {
11396
11396
  var Worker = class _Worker {
11397
11397
  constructor(options) {
11398
11398
  this.options = options;
11399
- this.logger = options.logger ?? new Logger("Worker", "debug");
11399
+ this.logger = options.logger ?? new Logger("Worker", "debug", ["item"]);
11400
11400
  this.tracer = options.tracer ?? trace.getTracer(options.name);
11401
11401
  this.meter = options.meter ?? metrics.getMeter(options.name);
11402
11402
  this.shutdownTimeoutMs = options.shutdownTimeoutMs ?? 6e4;
@@ -11790,7 +11790,8 @@ var Worker = class _Worker {
11790
11790
  this.logger.error("Unhandled error in processItem:", {
11791
11791
  error: err,
11792
11792
  workerId,
11793
- item
11793
+ id: queueItem.id,
11794
+ job: queueItem.job
11794
11795
  });
11795
11796
  }
11796
11797
  );
@@ -12055,7 +12056,6 @@ var Worker = class _Worker {
12055
12056
  name: this.options.name,
12056
12057
  id,
12057
12058
  job,
12058
- item,
12059
12059
  visibilityTimeoutMs,
12060
12060
  error,
12061
12061
  errorMessage
@@ -12104,7 +12104,6 @@ var Worker = class _Worker {
12104
12104
  name: this.options.name,
12105
12105
  id,
12106
12106
  job,
12107
- item,
12108
12107
  retryDate,
12109
12108
  retryDelay,
12110
12109
  visibilityTimeoutMs,
@@ -12125,7 +12124,6 @@ var Worker = class _Worker {
12125
12124
  name: this.options.name,
12126
12125
  id,
12127
12126
  job,
12128
- item,
12129
12127
  visibilityTimeoutMs,
12130
12128
  error: requeueError
12131
12129
  }