Skip to content

Commit

Permalink
fix: use job's delay attribute to reflect changes in delay (via `chan…
Browse files Browse the repository at this point in the history
…geDelay`), closes #544
  • Loading branch information
felixmosh committed Mar 7, 2023
1 parent 23e4826 commit 4d60ea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/handlers/queues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const formatJob = (job: QueueJob, queue: BaseAdapter): AppJob => {
finishedOn: jobProps.finishedOn,
progress: jobProps.progress,
attempts: jobProps.attemptsMade,
delay: job.opts.delay,
delay: jobProps.delay,
failedReason: jobProps.failedReason,
stacktrace,
opts: jobProps.opts,
Expand Down
1 change: 1 addition & 0 deletions packages/api/typings/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface QueueJobJson {
attemptsMade: number;
finishedOn?: number | null;
processedOn?: number | null;
delay?: number;
timestamp: number;
failedReason: string;
stacktrace: string[] | null;
Expand Down

0 comments on commit 4d60ea8

Please sign in to comment.