Retry when resolving staging task fails

[#80217622]

Signed-off-by: Amit Gupta <agupta@pivotal.io>