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

Custom jobId #351

Closed
nickbradley opened this issue Sep 27, 2016 · 2 comments
Closed

Custom jobId #351

nickbradley opened this issue Sep 27, 2016 · 2 comments

Comments

@nickbradley
Copy link

How can I check if a job is in the queue when using custom jobIds?

queue.add({}, {jobId: "abc"});

adds the job with opts.jobId set to "abc" but doesn't change jobId.

If I try to check if the job is queued using

queue.getJob("abc").then(function(val) => { 
  if (val) console.log("found job"); 
  else console.log("no job");
});

I get "no job".

@spiritinlife
Copy link

If you are using latest Release v1.0.0 i believe it is not yet supported. The pr #335 although merged to master is not yet released.
I believe the problem here is that the Readme says that it is supported.
Not sure though cause i am new to bull :P

@manast
Copy link
Member

manast commented Nov 9, 2016

This works since version 1.1.0

@manast manast closed this as completed Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants