We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b7fc9a2 + 14d77d0 commit d719181Copy full SHA for d719181
routes/getDataForQeues.js
@@ -27,6 +27,7 @@ const formatJob = job => {
27
finishedOn: job.finishedOn,
28
progress: job._progress,
29
attempts: job.attemptsMade,
30
+ delay: job.delay,
31
failedReason: job.failedReason,
32
stacktrace: job.stacktrace,
33
opts: job.opts,
ui/components/Queue.js
@@ -56,7 +56,7 @@ const statuses = [
56
const fields = {
57
latest: ['id', 'timestamps', 'progress', 'attempts', 'data', 'opts'],
58
completed: ['id', 'timestamps', 'progress', 'attempts', 'data', 'opts'],
59
- delayed: ['id', 'timestamps', 'attempts', 'data', 'opts'],
+ delayed: ['id', 'timestamps', 'attempts', 'delay', 'data', 'opts'],
60
paused: ['id', 'timestamps', 'attempts', 'data', 'opts'],
61
active: ['id', 'timestamps', 'progress', 'attempts', 'data', 'opts'],
62
waiting: ['id', 'timestamps', 'data', 'opts'],
@@ -190,6 +190,9 @@ const fieldComponents = {
190
attempts: ({ job }) => {
191
return job.attempts
192
},
193
+ delay: ({ job }) => {
194
+ return job.timestamp + job.delay - Date.now()
195
+ },
196
failedReason: ({ job }) => {
197
return (
198
<>
0 commit comments