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

BullMQ Job Queue: jobs query mixed results #2120

Closed
jacobfrantz1 opened this issue Apr 12, 2023 · 1 comment
Closed

BullMQ Job Queue: jobs query mixed results #2120

jacobfrantz1 opened this issue Apr 12, 2023 · 1 comment

Comments

@jacobfrantz1
Copy link
Contributor

Describe the bug
When using skip-take for jobs query, query returns skip-take for jobs of each state. For example, using a skip-take of 0-10 returns the first 10 completed jobs and the first 10 failed jobs.

This is the documented behavior of bullMQ's getJobs function. See Here

To Reproduce
Steps to reproduce the behavior:

  1. Go to admin job queue
  2. Show settled jobs
  3. See unexpected behavior

Expected behavior
The query should return the 10 most recent jobs, regardless of state, or the query/admin ui should be changed to better display the behavior.

Environment (please complete the following information):

  • @vendure/core version: 1.9.3
  • Nodejs version: 16.19.1
  • Database (mysql/postgres etc): postgresql v14
@michaelbromley
Copy link
Member

Hi,

Yes, I've been aware of this, but I'm not quite sure about the best way to handle this. It might be that we need to drop down to directly using the ioredis APIs to get the data we need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🚀 Shipped
Development

No branches or pull requests

2 participants