Hangfire.MySqlStorage
Hangfire.MySqlStorage copied to clipboard
Long tasks create fake and confusing errors
Hi,
I have set
JobExpirationCheckInterval = TimeSpan.FromDays(30)
And the deprecated but still usefull
InvisibilityTimeout = TimeSpan.FromDays(30)
And when I have run a long task (8hours~) I have this error that pop on the jobs details page in a red alert block after 4h~ :
The job was aborted – it is processed by server xxxxxxxxxxxxxxxxxxxxxxxxxxxx which is not in the active servers list for now. It will be retried automatically after invisibility timeout, but you can also re-queue or delete it manually.
But my long tasks is still running... And I realy don't want that hangfire retry this one after the invisibility timeout.
Same problem here ! Any Update on this?? How did u guys fix it?
Is there a workaround? I have jobs that takes more than 3 days.
Any updates on this? I noticed that for no obvious reason HF just starts a new server out of nowhere
You have to use the invisibilitytimeout. (deprecated but still useful)
more info here : https://github.com/arnoldasgudas/Hangfire.MySqlStorage/issues/20
Are there any plans to provide an alternative to InvisibilityTimeout in the near future?