diff --git a/example.js b/example.js index db65a097b..269ea1fc9 100644 --- a/example.js +++ b/example.js @@ -26,7 +26,7 @@ const run = () => { }) app.use('/add', (req, res) => { - example.add({ title: req.query.title }, { delay: 100000 }) + example.add({ title: req.query.title }) res.json({ ok: true }) }) diff --git a/ui/components/Queue.js b/ui/components/Queue.js index c6b51bf80..ff4bf9aa0 100644 --- a/ui/components/Queue.js +++ b/ui/components/Queue.js @@ -191,7 +191,7 @@ const fieldComponents = { return job.attempts }, delay: ({ job }) => { - return job.delay + return job.timestamp + job.delay - Date.now() }, failedReason: ({ job }) => { return (