# Background Task Creation failure while the Data Space Use of the sql-server is dropping

**URL:** <https://discuss.hangfire.io/t/background-task-creation-failure-while-the-data-space-use-of-the-sql-server-is-dropping/8152>\
**Category:** bug?\
**Tags:** sql-server\
**Created:** [January 18, 2021, 12:25pm UTC](https://discuss.hangfire.io/t/background-task-creation-failure-while-the-data-space-use-of-the-sql-server-is-dropping/8152 "2021-01-18T12:25:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francis](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/francis/32/2410_2.png) [@Francis](https://discuss.hangfire.io/u/Francis)\
**Post date:** [January 18, 2021, 12:25pm UTC](https://discuss.hangfire.io/t/background-task-creation-failure-while-the-data-space-use-of-the-sql-server-is-dropping/8152/1 "2021-01-18T12:25:29Z")

</div>

Hi,  
Currently using the latest stable versions of hangfire. I got a couple of these errors  
System.ComponentModel.Win32Exception

Message:  
`Background job creation failed. See inner exception for details. Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The wait operation timed out `

Callstack:  
`Hangfire.BackgroundJobClientException: at Hangfire.BackgroundJobClient.Create (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at [Our stuff here] at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Web.Http.Controllers.ApiControllerActionInvoker+<InvokeActionAsyncCore>d__0.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Web.Http.Controllers.ActionFilterResult+<ExecuteAsync>d__2.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Web.Http.Filters.AuthorizationFilterAttribute+<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Web.Http.Controllers.ExceptionFilterResult+<ExecuteAsync>d__0.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) Inner exception System.Data.SqlClient.SqlException handled at Hangfire.BackgroundJobClient.Create: at System.Data.SqlClient.SqlConnection.OnError (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.TdsParser.TryRun (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.SqlCommand.FinishExecuteReader (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.SqlCommand.RunExecuteReader (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at Hangfire.SqlServer.SqlCommandBatch.ExecuteNonQuery (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.<Commit>b__7_0 (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerStorage+<>c__DisplayClass26_0.<UseTransaction>b__0 (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerStorage.UseConnection (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerStorage.UseTransaction (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerStorage.UseTransaction (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.Commit (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.Client.CoreBackgroundJobFactory.Create (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.Client.BackgroundJobFactory+<>c__DisplayClass7_0.<CreateWithFilters>b__0 (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.Client.BackgroundJobFactory.InvokeClientFilter (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.Client.BackgroundJobFactory.Create (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.BackgroundJobClient.Create (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) Inner exception System.ComponentModel.Win32Exception handled at System.Data.SqlClient.SqlConnection.OnError:`

These errors happened at the same time this was happening

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/hangfire/original/2X/a/ac5fbc9bcb976cf55ac7d6588ac3639f07e3bb28.png)

This isn’t a huge issue, it has only happened once.
