I have a production. In the queues in front of the respective machine, I would like to prioritize the orders that have the shortest processing time. The information is read from a table. What is the best way to implement this? So far I have tried to prioritize the agent with the smallest number. But it did not work.
double
field in your agent type processingDur
Queue
, make sure you actually send through your custom agent typeQueue
"agent priority" field, type agent.processingDur
Now, your agents will be sorted in the queue by the duration