A
A
Artem2014-10-31 10:55:30
.NET
Artem, 2014-10-31 10:55:30

How to get task status in RabbitMQ?

Hey!
I understand here with RabbitMQ - in general, everything is clear, a good thing. But it is not clear how to get (more precisely, regularly receive) the status of a task that is being performed by the worker for a long time. For example, I would like the worker to report some percentage of the completion of the task, and the director to poll its status once a second and display the percentage in front of the bright eyes of the browser.
There is a possibility?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2014-10-31
@devspec

one of the options: the
worker fills another queue with intermediate data about the task and the percentage of completion, from where it is already raked out by the worker filling the webcam database

A
Andrey, 2014-11-01
@andreyvlru

We implemented through memcached
the state of the task is written there and in the same place we check what is happening with the task,
but we wanted a more direct way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question