How to stop a CloudCode task

I have a CloudCode task that is failing due to Task timed out. I keeps restarting the task after the failure. Is there a way to manually stop a CloudCode task without waiting for it to stop on it's own?

This seems to be a duplicate of an existing question, please see the answer here: CloudCode Task Timeout

Let me if this is not what you were looking for.

If you are referring to the automatic retry that happens for all failed tasks, then no, unfortunately not. Each task will retry itself 5 times to try and complete successfully. Only after the 5th attempt will it stop on its own and there is no way to manually "stop" the task from retrying.

I will add this as a feature request for consideration for our roadmap