# Recurring job failed without any mention

**URL:** <https://discuss.hangfire.io/t/recurring-job-failed-without-any-mention/3686>\
**Category:** question\
**Tags:** recurring, sql-server, logging\
**Created:** [August 14, 2017, 12:34pm UTC](https://discuss.hangfire.io/t/recurring-job-failed-without-any-mention/3686 "2017-08-14T12:34:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![80LevelElf](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/80levelelf/32/1057_2.png) [@80LevelElf](https://discuss.hangfire.io/u/80LevelElf)\
**Post date:** [August 14, 2017, 12:34pm UTC](https://discuss.hangfire.io/t/recurring-job-failed-without-any-mention/3686/1 "2017-08-14T12:34:34Z")

</div>

I use MS SQL to storage Hangfire data and self-written logger to log all stuff from Hangfire on my [Asp.net](http://Asp.net) MVC 5 site. The problem is I can startup Hangfire, configure it, add new recurring job without any problems, but it just doesn’t work (failed state in Hangfire.Job table).

I use OwinStartup configuration:

```
public static void ConfigureHangfire(IAppBuilder app, string connectionName)
{
	var options = new SqlServerStorageOptions
	{
		QueuePollInterval = TimeSpan.FromSeconds(10)
	};

	GlobalConfiguration.Configuration.UseSqlServerStorage(connectionName, options);

	// Do not try to rerun failed jobs by default!
	GlobalJobFilters.Filters.Add(new AutomaticRetryAttribute { Attempts = 0 });

	// Add logs into passed log
	LogProvider.SetCurrentLogProvider(new MyLogProvider()));

	app.UseHangfireServer();
}

```

So I have 2 question:

1. How can I make it work?
2. Why do I not get any log error messages?

---

<div class="post-metadata">

**Author:** ![80LevelElf](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/80levelelf/32/1057_2.png) [@80LevelElf](https://discuss.hangfire.io/u/80LevelElf)\
**Post date:** [August 15, 2017, 4:45pm UTC](https://discuss.hangfire.io/t/recurring-job-failed-without-any-mention/3686/2 "2017-08-15T16:45:05Z")

</div>

And I’ve found out answers to all questions:

First of all, my logging became work after I had commented this line:

```
GlobalJobFilters.Filters.Add(new AutomaticRetryAttribute { Attempts = 0 });

```

I’ve tried to change Attempts to 1, but it still has not worked. Only full commenting of this code helped. Is this a bug? Frankly, I think so.

And after commenting I’ve got an opportunity to receive a problem message. And the problem is the class which owns called method isn’t contains parameterless constructor.
