SendExpiredContractMessagesJobMultiTenant.ExecuteJob

// Id: #651
using NP.FRIDA.BackgroundJob;

var sendExpiredContractMessagesJobMultiTenant = Activate<SendExpiredContractMessagesJobMultiTenant>();
await sendExpiredContractMessagesJobMultiTenant.ExecuteJob("supportno");

Parameters

RecurringJobId
"ExpiredContractMessage"
Time
1774395186
CurrentCulture
""
CurrentUICulture
""

State

03/24/2026 23:36:17 (+3m 11.139s) Failed

An exception occurred during performance of the job.

Microsoft.Data.SqlClient.SqlException (kundtest-frida-bgjobs-7b4fbb98b8-gpbv4:1)

Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

Microsoft.Data.SqlClient.SqlException: Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: Unknown error 258
   --- End of inner exception stack trace ---
   at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__195_0(Task`1 result)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass30_0`2.<<ExecuteAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Identity.UserManager`1.FindByNameAsync(String userName)
   at NP.FRIDA.SystemBLL.ApplicationUserManager.FindByNameAsync(String userName) in /home/vsts/work/1/s/NP.FRIDA.SystemBLL/Managers/ApplicationUserManager.cs:line 80
   at NP.FRIDA.Authorization.ClaimsTransformationValidated.FindApplicationUser(ClaimsPrincipal claimsPrincipal) in /home/vsts/work/1/s/NP.FRIDA.Authorization/ClaimsTransformationValidated.cs:line 111
   at NP.FRIDA.Authorization.ClaimsTransformationValidated.Transform(ClaimsPrincipal claimsPrincipal) in /home/vsts/work/1/s/NP.FRIDA.Authorization/ClaimsTransformationValidated.cs:line 73
   at NP.FRIDA.Authorization.ClaimsTransformationValidated.TransformAsync(ClaimsPrincipal principal) in /home/vsts/work/1/s/NP.FRIDA.Authorization/ClaimsTransformationValidated.cs:line 498
   at NP.FRIDA.BackgroundJob.BackgrundJobClaimsTransformation.IUserAccessFromUser(String userId, String username) in /home/vsts/work/1/s/NP.FRIDA.BackgroundJob/BackgrundJobClaimsTransformation.cs:line 44
   at NP.FRIDA.BackgroundJob.MultiTenant.MultiTenantBackgroundJob`1.ExecuteJobAsTenant(FridaTenantInfo tenantInfo) in /home/vsts/work/1/s/NP.FRIDA.BackgroundJob/MultiTenant/MultiTenantBackgroundJob.cs:line 77
   at NP.FRIDA.BackgroundJob.MultiTenant.MultiTenantBackgroundJob`1.ExecuteJob(String tenantIdentifier) in /home/vsts/work/1/s/NP.FRIDA.BackgroundJob/MultiTenant/MultiTenantBackgroundJob.cs:line 45
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

+ <1ms Processing

Server:
kundtest-frida-bgjobs-7b4fbb98b8-gpbv4:1
Worker:
b986a174

+ <1ms Enqueued

Triggered by recurring job scheduler

03/24/2026 23:33:06 Created