Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use job's delay attribute to reflect changes in delay #545

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: use job's delay attribute to reflect changes in delay (via `chan…
…geDelay`), closes #544
felixmosh committed Mar 7, 2023
commit 4d60ea8d715c419b88a1cb85fc4a3584fe09f14b
2 changes: 1 addition & 1 deletion packages/api/src/handlers/queues.ts
Original file line number Diff line number Diff line change
@@ -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,
1 change: 1 addition & 0 deletions packages/api/typings/app.ts
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@ export interface QueueJobJson {
attemptsMade: number;
finishedOn?: number | null;
processedOn?: number | null;
delay?: number;
timestamp: number;
failedReason: string;
stacktrace: string[] | null;