hibiken / asynq

Simple, reliable, and efficient distributed task queue in Go
MIT License
9k stars 659 forks source link

Question : how to wait for results after enqueue #851

Open Zambiorix opened 3 months ago

Zambiorix commented 3 months ago

I'm trying to decouple my frontend REST api from my backend with Asynq. How do I actually make my client wait for the result of a task after I enqueue it?

Thanks!

linhbkhn95 commented 3 months ago

I think https://github.com/hibiken/asynqmon the thing that you need right now. I also give you know how to client interact with asynq api

yimingsir commented 1 month ago

You can add job status field. In asynq job execution, update job status field to doing/done. Add a api to get job status,at frontend you can get job status by the api.