Hangfire.PostgreSql icon indicating copy to clipboard operation
Hangfire.PostgreSql copied to clipboard

UseSlidingInvisibilityTimeout not working sometimes

Open strigefleur opened this issue 11 months ago • 2 comments

Having configuration

InvisibilityTimeout = TimeSpan.FromMinutes(5),
UseSlidingInvisibilityTimeout = true,

I'd expect it to let long running jobs to execute without setting huge InvisibilityTimeout.

However under some circumstances (alas, can't reproduce intentionally) - like for a week it is fine and than just no - the task is interrupted after 5 minutes (InvisibilityTimeout I guess) with OperationCanceledException and then is tried to requeue (again sometimes there's also a warning about another worker that fetches the task).

Any ideas?

strigefleur avatar Dec 17 '24 09:12 strigefleur