Implemente automatically rerunning failed tasks