AsyncTaskProcessorJob.ProcessPendingTasks

// Id: #20434
using TEQ.WorkerRole.Jobs;

var asyncTaskProcessorJob = Activate<AsyncTaskProcessorJob>();
await asyncTaskProcessorJob.ProcessPendingTasks();

Parameters

CurrentCulture
""
RecurringJobId
"process-pending-tasks"
Time
1763739244

State

11/21/2025 15:34:05 (+1.036s) Failed

An exception occurred during performance of the job.

System.ArgumentOutOfRangeException (lw0mdlwk0001l5:1875)

Token 2000000 is not valid in the scope of module System.ModuleHandle. (Parameter 'typeToken')

System.ArgumentOutOfRangeException: Token 2000000 is not valid in the scope of module System.ModuleHandle. (Parameter 'typeToken')
   at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
   at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
   at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder`1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1 derivedAttributes)
   at Microsoft.EntityFrameworkCore.Internal.DbContextServices.<CreateModel>g__FindCompiledModel|6_0(Type contextType)
   at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)
   at Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServicesBuilder.<>c.<TryAddCoreServices>b__8_4(IServiceProvider p)
   at ResolveService(ILEmitResolverBuilderRuntimeContext, ServiceProviderEngineScope)
   at ResolveService(ILEmitResolverBuilderRuntimeContext, ServiceProviderEngineScope)
   at ResolveService(ILEmitResolverBuilderRuntimeContext, ServiceProviderEngineScope)
   at ResolveService(ILEmitResolverBuilderRuntimeContext, ServiceProviderEngineScope)
   at ResolveService(ILEmitResolverBuilderRuntimeContext, ServiceProviderEngineScope)
   at ResolveService(ILEmitResolverBuilderRuntimeContext, ServiceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
   at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()
   at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()
   at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()
   at Microsoft.EntityFrameworkCore.DbContext.Set[TEntity]()
   at PGMS.DataProvider.EFCore.Services.UnitOfWork`1.GetDbSet[TEntity]()
   at PGMS.DataProvider.EFCore.Services.BaseOperationEntityRepository`1.GetOperationQuery[TEntity](IUnitOfWork unitOfWork, Expression`1 filter)
   at PGMS.DataProvider.EFCore.Services.BaseOperationEntityRepository`1.GetOperationAsync[TEntity](IUnitOfWork unitOfWork, Expression`1 filter, Func`2 orderBy, Int32 fetchSize, Int32 offset)
   at PGMS.DataProvider.EFCore.Services.BaseEntityRepository`1.FindTopAsync[TEntity](Expression`1 filter, Func`2 orderBy, Int32 fetchSize, Int32 offset)
   at PGMS.DataProvider.EFCore.Services.BaseEntityRepository`1.FindTopAsync[TEntity](Expression`1 filter, Func`2 orderBy, Int32 fetchSize, Int32 offset)
   at TEQ.WorkerRole.Services.AsyncTaskProcessorService.ProcessPendingTasks() in D:\a\1\s\src\TEQ.WorkerRole\Services\AsyncTaskProcessorService.cs:line 30
   at TEQ.WorkerRole.Jobs.AsyncTaskProcessorJob.ProcessPendingTasks() in D:\a\1\s\src\TEQ.WorkerRole\Jobs\AsyncTaskProcessorJob.cs:line 27
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

+307ms Processing

Server:
lw0mdlwk0001l5:1875
Worker:
dca1a579

+30ms Enqueued

Triggered by recurring job scheduler

11/21/2025 15:34:04 Created