How to Stop Multiple Long Recursive Async Tasks on TaskQue?

Hello everyone :raised_hand_with_fingers_splayed:,

I’m currently facing a challenge with managing multiple long-running recursive async tasks in TaskQue and could use some help. These tasks often need to be stopped or canceled before they complete, but I’m unsure of the best way to handle this in TaskQue.

I came across some information on the difference between recursion and iteration here https://www.geeksforgeeks.org/difference-between-recursion-and-iteration-mule-esb/, but I need practical guidance specific to TaskQue.

How do you efficiently stop or cancel multiple long recursive async tasks without causing disruptions or errors in the workflow? Are there specific settings or features in TaskQue that can help manage this?

If you have any tips for monitoring and controlling these tasks to optimize resource usage and prevent them from running indefinitely would be helpful🔍

Thanks all for my help :blush: