MarketCleanupTask.Execute

// Id: #880263
using TEQ.WorkerJobs.Jobs.Scheduled;

var marketCleanupTask = Activate<MarketCleanupTask>();
await marketCleanupTask.Execute(null, null);

Parameters

CurrentCulture
""
RecurringJobId
"Market Cleanup"
Time
1783734005

State

07/11/2026 01:40:50 (+45.333s) Failed

Failed to change state to a 'Failed' one due to an exception after 10 retry attempts

System.AggregateException (ln0sdlwk0009s2:1873)

An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.)

System.AggregateException: An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.) ---> System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
   at System.Diagnostics.StackTrace.ToString(TraceFormat traceFormat, StringBuilder sb)
   at System.Exception.ToString()
   at Microsoft.Extensions.Logging.Console.SimpleConsoleFormatter.Write[TState](LogEntry`1& logEntry, IExternalScopeProvider scopeProvider, TextWriter textWriter)
   at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
   at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state)

   --- End of inner exception stack trace ---
   at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions)
   at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
   at Hangfire.AspNetCore.AspNetCoreLog.Log(LogLevel logLevel, Func`1 messageFunc, Exception exception)
   at Hangfire.Logging.LogExtensions.ErrorException(ILog logger, String message, Exception exception)
   at Hangfire.States.StateMachine.InvokeOnStateElection(KeyValuePair`2 x)

+20ms Processing

Server:
ln0sdlwk0009s2:1873
Worker:
04a68a19
+37msStarted
+63ms[INFO] MarketCleanupTask: starting for 17 zone(s) [21, 22, 23, 24, 25, 26, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016] (legacy=6, private=11).
+122ms[ERROR] MarketCleanupTask: zone 21 failed. Continuing with next zone. - Token 2005ab9 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 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeHandlerAsync[T](Type makeGenericType, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeFromTypeAsync[T](Type t, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeEventHandlersAsync[T](T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.BaseCommandHandlerAsync`1.ProcessCommand(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.HandleCommand`1.Execute(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Send(ICommand command, IContextInfo contextInfo) at TEQ.WorkerJobs.Jobs.BaseBackgroundTask.SendCommand(ICommand command) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseBackgroundTask.cs:line 47 at TEQ.WorkerJobs.Jobs.Scheduled.MarketCleanupTask.ExecuteForZoneAsync(Int32 zoneId, PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\Scheduled\MarketCleanupTask.cs:line 39 at TEQ.WorkerJobs.Jobs.BaseZoneAwareTask.ExecuteTask(PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseZoneAwareTask.cs:line 91
+146ms[ERROR] MarketCleanupTask: zone 22 failed. Continuing with next zone. - Token 2005ab9 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 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeHandlerAsync[T](Type makeGenericType, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeFromTypeAsync[T](Type t, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeEventHandlersAsync[T](T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.BaseCommandHandlerAsync`1.ProcessCommand(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.HandleCommand`1.Execute(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Send(ICommand command, IContextInfo contextInfo) at TEQ.WorkerJobs.Jobs.BaseBackgroundTask.SendCommand(ICommand command) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseBackgroundTask.cs:line 47 at TEQ.WorkerJobs.Jobs.Scheduled.MarketCleanupTask.ExecuteForZoneAsync(Int32 zoneId, PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\Scheduled\MarketCleanupTask.cs:line 39 at TEQ.WorkerJobs.Jobs.BaseZoneAwareTask.ExecuteTask(PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseZoneAwareTask.cs:line 91
+176ms[ERROR] MarketCleanupTask: zone 23 failed. Continuing with next zone. - Token 2005ab9 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 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeHandlerAsync[T](Type makeGenericType, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeFromTypeAsync[T](Type t, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeEventHandlersAsync[T](T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.BaseCommandHandlerAsync`1.ProcessCommand(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.HandleCommand`1.Execute(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Send(ICommand command, IContextInfo contextInfo) at TEQ.WorkerJobs.Jobs.BaseBackgroundTask.SendCommand(ICommand command) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseBackgroundTask.cs:line 47 at TEQ.WorkerJobs.Jobs.Scheduled.MarketCleanupTask.ExecuteForZoneAsync(Int32 zoneId, PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\Scheduled\MarketCleanupTask.cs:line 39 at TEQ.WorkerJobs.Jobs.BaseZoneAwareTask.ExecuteTask(PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseZoneAwareTask.cs:line 91
+188ms[ERROR] MarketCleanupTask: zone 24 failed. Continuing with next zone. - Token 2005ab9 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 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeHandlerAsync[T](Type makeGenericType, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeFromTypeAsync[T](Type t, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeEventHandlersAsync[T](T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.BaseCommandHandlerAsync`1.ProcessCommand(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.HandleCommand`1.Execute(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Send(ICommand command, IContextInfo contextInfo) at TEQ.WorkerJobs.Jobs.BaseBackgroundTask.SendCommand(ICommand command) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseBackgroundTask.cs:line 47 at TEQ.WorkerJobs.Jobs.Scheduled.MarketCleanupTask.ExecuteForZoneAsync(Int32 zoneId, PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\Scheduled\MarketCleanupTask.cs:line 39 at TEQ.WorkerJobs.Jobs.BaseZoneAwareTask.ExecuteTask(PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseZoneAwareTask.cs:line 91
+224ms[ERROR] MarketCleanupTask: zone 25 failed. Continuing with next zone. - Token 2005ab9 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 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeHandlerAsync[T](Type makeGenericType, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeFromTypeAsync[T](Type t, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeEventHandlersAsync[T](T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.BaseCommandHandlerAsync`1.ProcessCommand(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.HandleCommand`1.Execute(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Send(ICommand command, IContextInfo contextInfo) at TEQ.WorkerJobs.Jobs.BaseBackgroundTask.SendCommand(ICommand command) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseBackgroundTask.cs:line 47 at TEQ.WorkerJobs.Jobs.Scheduled.MarketCleanupTask.ExecuteForZoneAsync(Int32 zoneId, PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\Scheduled\MarketCleanupTask.cs:line 39 at TEQ.WorkerJobs.Jobs.BaseZoneAwareTask.ExecuteTask(PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseZoneAwareTask.cs:line 91
+235ms[ERROR] MarketCleanupTask: zone 26 failed. Continuing with next zone. - Token 2005ab9 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 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeHandlerAsync[T](Type makeGenericType, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeFromTypeAsync[T](Type t, T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.InvokeEventHandlersAsync[T](T event, IUnitOfWork unitOfWork, EventHandlerProcessingPriority priority) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Publish[T](T event) at PGMS.CQSLight.Infra.Commands.BaseCommandHandlerAsync`1.ProcessCommand(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.HandleCommand`1.Execute(T command, IContextInfo contextInfo) at PGMS.CQSLight.Infra.Commands.Services.DirectBus.Send(ICommand command, IContextInfo contextInfo) at TEQ.WorkerJobs.Jobs.BaseBackgroundTask.SendCommand(ICommand command) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseBackgroundTask.cs:line 47 at TEQ.WorkerJobs.Jobs.Scheduled.MarketCleanupTask.ExecuteForZoneAsync(Int32 zoneId, PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\Scheduled\MarketCleanupTask.cs:line 39 at TEQ.WorkerJobs.Jobs.BaseZoneAwareTask.ExecuteTask(PerformContext context, CancellationToken cancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseZoneAwareTask.cs:line 91

+24ms Enqueued

Triggered by recurring job scheduler

07/11/2026 01:40:05 Created