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

Filtering Jobs query is not working (BullMQJobQueuePlugin) #1327

Closed
HarunKilic opened this issue Jan 6, 2022 · 4 comments
Closed

Filtering Jobs query is not working (BullMQJobQueuePlugin) #1327

HarunKilic opened this issue Jan 6, 2022 · 4 comments

Comments

@HarunKilic
Copy link
Contributor

HarunKilic commented Jan 6, 2022

Describe the bug
Options in the jobs query does not work. It won't react on it.

To Reproduce
Steps to reproduce the behavior:

  1. Stop worker
  2. Start a Job (Just let it stay as PENDING state)
  3. use query:
  jobs(options: { filter: { queueName: { eq: "NOT_EVEN_CLOSE" } } }) {
    items {
      id
      progress
      queueName
    }
    totalItems
  }
  1. See that the job will append, even tho queueName filter is set.

Expected behavior
Expected no jobs to appear, as the queueName is something that is not in the Job.

Environment (please complete the following information):

  • @vendure/core version: 1.4.3
  • Nodejs version: 16.13.1
  • Database (mysql/postgres etc): postgres
@HarunKilic HarunKilic added the type: bug 🐛 Something isn't working label Jan 6, 2022
@michaelbromley
Copy link
Member

Thanks for the report. Are you using the DefaultJobQueuePlugin?

@HarunKilic
Copy link
Contributor Author

Forgot to mention that. But i am using BullMQ(Redis)

@michaelbromley michaelbromley changed the title Filtering Jobs query is not working Filtering Jobs query is not working (BullMQJobQueuePlugin) Jan 6, 2022
@giosueDelgado
Copy link
Collaborator

I confirm I have this issue in the last major commit.

@michaelbromley
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants