Wraps a task with retry functionality.
The task to be executed.
The arguments to be passed to the task.
The options for retry behavior.
Wraps a task with retry functionality.