Retry support for tasks.