API endpoint for stopping the execution of tasks

I don't think that would work. The break would only break out of the inner-most loop, causing the else-clause to always be executed, even if we did find the correct assignment.