hibiken / asynq

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

Question : how to wait for results after enqueue #851

Open Zambiorix opened 7 months ago

Zambiorix commented 7 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 7 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 5 months 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.