SyrahTrader.Services.Scheduler.Tasks.CacheSecurities

// Id: #20254
using SyrahTrader.Scheduler;

var jobsConfigurator = Activate<JobsConfigurator>();
await jobsConfigurator.ExecuteTaskAsync(
    FromJson<Type>("\"SyrahTrader.Services.Scheduler.Tasks.CacheSecurities, SyrahTrader.Services.Scheduler.Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\""));

Parameters

RecurringJobId
"CacheSecurities"
Time
1787645701
CurrentCulture
"en-US"
CurrentUICulture
"en-US"
RetryCount
2

State

8/25/2026 8:53:54 AM (+33m 33.745s) Succeeded

Latency:
5m 19.269s
Duration:
33m 33.657s

+5.132s Processing

Server:
rd2016427ee395:4976
Worker:
9cadf8e4

+22.722s Enqueued

Triggered by DelayedJobScheduler

+7ms Scheduled

Retry attempt 2 of 10: Cache refresh failed - count mismatch. Expected: …

Enqueue at:
8/25/2026 8:20:14 AM

+2m 4.089s Failed

An exception occurred during performance of the job.

System.InvalidOperationException (rd2016427ee395:4976)

Cache refresh failed - count mismatch. Expected: 16277, Actual: 16281

System.InvalidOperationException: Cache refresh failed - count mismatch. Expected: 16277, Actual: 16281
   at SyrahTrader.DAL.AzureCache.SecuritiesCacheCoordinator.<StoreAllSecuritiesInRedisAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at SyrahTrader.DAL.AzureCache.SecuritiesCacheCoordinator.<StoreAllSecuritiesInRedisAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.DAL.AzureCache.SecuritiesCacheCoordinator.<RefreshCacheWithSecuritiesAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.DAL.AzureCache.Repositories.CachedSecuritiesRepository.<ForceRefreshCacheAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.MarketData.SecuritiesService.<ForceRefreshCacheAsync>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.Services.Scheduler.Tasks.CacheSecurities.<DoActionAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.Services.Scheduler.Tasks.SyrahTraderTaskBase.<ExecuteAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.Services.Scheduler.Tasks.SyrahTraderTaskRunner.<ExecuteTaskAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.Scheduler.JobsConfigurator.<ExecuteTaskAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+3.407s Processing

Server:
rd2016427ee395:4976
Worker:
db1388b8

+26.628s Enqueued

Triggered by DelayedJobScheduler

+4ms Scheduled

Retry attempt 1 of 10: Cache refresh failed - count mismatch. Expected: …

Enqueue at:
8/25/2026 8:17:42 AM

+2m 13.295s Failed

An exception occurred during performance of the job.

System.InvalidOperationException (rd2016427ee395:4976)

Cache refresh failed - count mismatch. Expected: 16277, Actual: 16281

System.InvalidOperationException: Cache refresh failed - count mismatch. Expected: 16277, Actual: 16281
   at SyrahTrader.DAL.AzureCache.SecuritiesCacheCoordinator.<StoreAllSecuritiesInRedisAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at SyrahTrader.DAL.AzureCache.SecuritiesCacheCoordinator.<StoreAllSecuritiesInRedisAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.DAL.AzureCache.SecuritiesCacheCoordinator.<RefreshCacheWithSecuritiesAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.DAL.AzureCache.Repositories.CachedSecuritiesRepository.<ForceRefreshCacheAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.MarketData.SecuritiesService.<ForceRefreshCacheAsync>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.Services.Scheduler.Tasks.CacheSecurities.<DoActionAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.Services.Scheduler.Tasks.SyrahTraderTaskBase.<ExecuteAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.Services.Scheduler.Tasks.SyrahTraderTaskRunner.<ExecuteTaskAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SyrahTrader.Scheduler.JobsConfigurator.<ExecuteTaskAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+3.965s Processing

Server:
rd2016427ee395:4976
Worker:
db1388b8

+17ms Enqueued

Triggered by recurring job scheduler

8/25/2026 8:15:01 AM Created