UpdateExpiredGiftOrderTask.ExecuteJob

// Job ID: #97333167
using DPoint.Scheduler.Infrastructure.Tasks;

var updateExpiredGiftOrderTask = Activate<UpdateExpiredGiftOrderTask>();
await updateExpiredGiftOrderTask.ExecuteJob();

Parameters

CurrentCulture
""
CurrentUICulture
""
RecurringJobId
"UpdateExpiredGiftOrderTask"
Time
1733389771

State

12/05/2024 09:10:19 (+36.450s) Failed

An exception occurred during performance of the job.

System.InvalidOperationException

Could not get a value of the job parameter `CurrentCulture`. See inner exception for details.

System.InvalidOperationException: Could not get a value of the job parameter `CurrentCulture`. See inner exception for details.
 ---> System.InvalidOperationException: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at Hangfire.SqlServer.SqlServerStorage.CreateAndOpenConnection()
   at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
   at Hangfire.SqlServer.SqlServerConnection.GetJobParameter(String id, String name)
   at Hangfire.Server.PerformContext.GetJobParameter[T](String name)
   --- End of inner exception stack trace ---
   at Hangfire.Server.PerformContext.GetJobParameter[T](String name)
   at Hangfire.CaptureCultureAttribute.OnPerforming(PerformingContext filterContext)
   at Hangfire.Profiling.ProfilerExtensions.InvokeAction[TInstance](InstanceAction`1 tuple)
   at Hangfire.Profiling.SlowLogProfiler.InvokeMeasured[TInstance,TResult](TInstance instance, Func`2 action, String message)
   at Hangfire.Profiling.ProfilerExtensions.InvokeMeasured[TInstance](IProfiler profiler, TInstance instance, Action`1 action, String message)
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation)

+760ms Processing

Server:
scheduler-api-7cdc67868f-z6l8z:1
Worker:
567ee978

+34ms Enqueued

Triggered by recurring job scheduler

Queue:
default

12/05/2024 09:09:42 Created