Prevent duplicate task submissions