Thanks @Anna Geller that is helpful though the use case I was looking for when the task has to retry when the upstream data is not available and I want to retry rather when it is failure
I was able to work with RETRY in Prefect 1 and I would like to keep retry decorator for the actual failure