we're using Gearman with one queue/function and all 3 priorities. We want to build a Grafana dashboard with the queue structure stacked in terms of priorities. This would allow us to view how many HIGH jobs are waiting, estimate when NORMAL jobs will start, etc.. .
We were looking at using a persistent queue to extract the data when we came across gearadmin --priority-status and the prioritystatus telnet TEXT command.
However we're unable to get meaningful results in testing.
We've pushed 100 high, 50 normal and 10 low jobs on the foo function with 0 workers and this is the output we're getting:
bar 0 0 0 0
convert 0 0 0 25
foo 1 1 2 0
So only 1 high, 1 medium and 2 low ?! gearadmin --show-unique-jobs shows all 160 unique ids.