I'm testing AI model with rabbit mq.
Becasue the process using AI model is heavy, i use rabbit mq to control the task order.
The problem is killing the callback function after consuming.
For example, there are three tasks in rabbit mq(A,B,C in order)

task A is consuming, callback function(include AI model) is running
task B,C is waiting untill basic_ack arrived
I want cancel task A ,B and analysis C first

in this case,

how can i kill the process (task A),
delete the message B in rabbit MQ
I find the way but cannot sure the right way.
Use another queue to receive all message from rabbitmq
and create_task by using asyncio to cancel when i want
it works well only all funcs are asyncronose
How can i kill the process in rabbit mq?