Priority for reprocessing of failed tasks