Fix RetryTask

Improve exception when attributes are missing
Use timedelta instead of number of seconds