Retry tasks twice.