Does celery support returning pending number jobs to a given task identifier?
For example, without working with celery, I press task1, task2, task3, all three are waiting, now what I want, if I give task3, it tells me that before 3 there are two waiting tasks.
I use celery celery 4.1, rabbit 3.5.4 as a broker and redis 3.2.9 as a result.
Although I can get the depth of the rabbit queue using the management API (for example, get_queue_depth from the pyrabbit package), this will result in the full depth of the queue, and not the waiting number to the specified task identifier.
And I know that I could support the queue by managing the pressed task identifiers myself.
But I want if there is any simple way using celery or the rabbit itself.
Thank.
source
share