Long running jobs get aborted


#1

Hi,

We are using MongoDB as storage, with the latest versions of Hangfire.Core and Hangfire.Mongo.

The issue is that any long running job gets aborted after 60 minutes. We’ve tried changing InvisibilityTimeout but there is no change; from what I’ve seen in the source code and other forum posts this setting is not used anymore?

Steps to reproduce are fairly simple - just have a job that stays idle for more than 60 minutes.

Is there something we are missing?

Regards,
Mihai Olteanu


#2

Check to make sure that your application pool is not recycling. If a long running job is active when the application pool recycles, it will be aborted.