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

Specifying ASYNC option for addjob #3

Open
ethul opened this issue Jan 7, 2016 · 0 comments
Open

Specifying ASYNC option for addjob #3

ethul opened this issue Jan 7, 2016 · 0 comments

Comments

@ethul
Copy link

ethul commented Jan 7, 2016

I can specify options for addjob that have a corresponding value; e.g.,

client.addjob('queue', 'job', 100, {DELAY: 10}, function(err, res) {
 ...
})

However, I am wondering if there is a way to provide the ASYNC option. I've tried {ASYNC: ''}, but this results in an error. Perhaps in the options function, if the value of the option for a specific key is null or an explicit false then only the key should be added. Also, the result array preallocation should be removed or determined in a different way since some options may not have corresponding values.

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

1 participant