-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
What is the recommended way to retrieve results from completed job? #1930
Comments
Please let me know if the information here is enough or we need to improve the documentation https://docs.bullmq.io/guide/returning-job-data |
@manast Thank you for pointing to me that article. It gave me some pointers on how to get result from processed job. I have one more question as how to get job status efficiently when server receives request from client about job status. Here in the below pseudo code, I am using
What is the recommended approach to get job status in this situation? Also, if you can point me to some example code on how to use results queue approach, that would be awesome. |
@manast how about to add more detailed info (like code examples) to this section? |
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. |
I am using BullMQ with express server to process jobs asynchronously but confused as how to retrieve the results from completed jobs.
What I am doing currently is to listen for job completed status event and store those results in an object with job Id as key and retrieving the results from that object whenever I need it. Is there a recommended way of doing this?
I looked at documentation but couldn't find anything about how to retrieve results.
Here is the sample code:
The text was updated successfully, but these errors were encountered: