I have a requirement to manually configure the time between retries. I was not able to find the way for it.
But I found a code from https://github.com/HangfireIO/Hangfire/blob/master/src/Hangfire.Core/AutomaticRetryAttribute.cs
which schedule job after maximum number of retries are finished.
public static readonly int DefaultRetryAttempts = 10;
I have changed above property DefaultRetryAttemts
to 3
instead of 10
then also it is taking 10 retries for a single job
'Retry attempt 7 of 10: Error while importing data'
My requirement is to have 5 retry attempts and provide 20 minutes delay after each retry.