add in exponential wait time for TaskState.TASK_FAILED cases, the defaul...

Added in exponential incremental retry wait time for TaskState.TASK_FAILED cases.
The default wait time is starting at 10 secs.
Why the `if/else` the predicate already produces the correct result.