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

How to use @OnQueueCompleted in nestjs? #2225

Closed
littleKitchen opened this issue Nov 29, 2021 · 2 comments
Closed

How to use @OnQueueCompleted in nestjs? #2225

littleKitchen opened this issue Nov 29, 2021 · 2 comments
Labels

Comments

@littleKitchen
Copy link

I want to combine the Bull and Postmarks to send the email.
So, I put the postmarks code in the Bull consumer part, and I want to send a message to Kafka topic under @OnQueueCompleted decorator.

Here is my code:
@OnQueueCompleted()
onComplete(job: Job, result: any) {
console.log(result)
this.kfk.emit('Notification', {
MessageID: result['MessageID'],
});
}

somehow, this code will call the producer again which is not what I want.

@manast
Copy link
Member

manast commented Nov 30, 2021

Please for nestjs related issues post them on the nestjs repo.

@stale
Copy link

stale bot commented Jan 29, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 29, 2022
@stale stale bot closed this as completed Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants