arnoldasgudas / Hangfire.MySqlStorage

MySql storage for Hangfire - fire-and-forget, delayed and recurring tasks runner
GNU Lesser General Public License v3.0
174 stars 114 forks source link

Long tasks create fake and confusing errors #59

Open Safirion opened 5 years ago

Safirion commented 5 years ago

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.

LucasFarley commented 5 years ago

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

LucasFarley commented 5 years ago

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

Itzamna-globant commented 5 years ago

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

Safirion commented 5 years ago

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

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

richardgundersen commented 3 years ago

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