Does celery support returning pending tasks number before given task id?
For example, without celery worker started, I push task1, task2, task3, all the three are pending, now, what I wanna is, if I give task3, it tells me there are 2 pending tasks before 3.
I use celery celery 4.1, rabbitmq 3.5.4 as broker, and redis 3.2.9 as result backend.
Although I can get rabbit queue depth by management API(e.g. get_queue_depth from pyrabbit package), this results the whole queue depth, not pending number before specified task id.
And I know I could maintain a queue managing pushed task ids by myself.
But I wanna if there is any easy way by celery or rabbitmq itself.
Thanks.