Failed recurring jobs

Tags: #<Tag:0x00007faffe4aa208> #<Tag:0x00007faffe4a9fd8>

Hi guys,

I’ve implemented recurring jobs on Hangfire, but unfortunately all jobs failed. I can’t find explanation why, but they should run for a long time (something about couple hours, because I use html crawler and scrapers in this jobs). Maybe there is some timeout to setup? Am I missing something?

Here is hangfire configuration:

        GlobalConfiguration.Configuration.UseSqlServerStorage("MainConnection", new SqlServerStorageOptions
        {
            QueuePollInterval = TimeSpan.FromSeconds(15),
            PrepareSchemaIfNecessary = true,
            SchemaName = _hangfireConfiguration.SchemaName
        });

        var serverIdentifier = new ServerIdentifier();
        var serverQueue = serverIdentifier.GetQueueName();

        _options = new BackgroundJobServerOptions
        {
            Queues = new[] { serverQueue, "default" }
        };

        var hangfireBootstrapper = new HangfireBootstrapper(serverIdentifier, new ConnectionStringProvider("MainConnection"));
        GlobalConfiguration.Configuration.UseActivator(new SimpleInjectorJobActivator(hangfireBootstrapper.Container));
        hangfireBootstrapper.Register();