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

Long tasks create fake and confusing errors

Open Safirion opened this issue 5 years ago • 5 comments

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.

Safirion avatar Mar 28 '19 15:03 Safirion

Same problem here ! Any Update on this?? How did u guys fix it?

LucasFarley avatar Apr 14 '19 00:04 LucasFarley

Is there a workaround? I have jobs that takes more than 3 days.

LucasFarley avatar Apr 14 '19 01:04 LucasFarley

Any updates on this? I noticed that for no obvious reason HF just starts a new server out of nowhere

Itzamna-globant avatar Nov 28 '19 21:11 Itzamna-globant

You have to use the invisibilitytimeout. (deprecated but still useful)

more info here : https://github.com/arnoldasgudas/Hangfire.MySqlStorage/issues/20

Safirion avatar Nov 28 '19 21:11 Safirion

Are there any plans to provide an alternative to InvisibilityTimeout in the near future?

richardgundersen avatar Feb 12 '21 14:02 richardgundersen