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

Adding multiple jobs at once? #236

Closed
VakoNonikashvili opened this issue Jul 1, 2020 · 1 comment
Closed

Adding multiple jobs at once? #236

VakoNonikashvili opened this issue Jul 1, 2020 · 1 comment

Comments

@VakoNonikashvili
Copy link

I have array of users and want to send transactional emails to each user. Is it possible to map users, make array of jobs and add in queue at the same time?

@manast
Copy link
Contributor

manast commented Jul 1, 2020

Yes, you should be able to use the addBulk method:

async addBulk(jobs: { name: string; data: T; opts?: JobsOptions }[]) {

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