SendCancellationsTask.ProcessRecurringAsync

// Job ID: #2014636
using EkolPY.Integration.Manager.Tasks;

var sendCancellationsTask = Activate<SendCancellationsTask>();
await sendCancellationsTask.ProcessRecurringAsync(
    null,
    "default",
    FromJson<TaskType>("{\"Id\":30,\"SystemName\":\"SendCancellations\",\"Name\":\"İptallerin FF'e Gönderimi\",\"JobClassName\":\"SendCancellationsTask\",\"Type\":\"Recurring\",\"Cron\":\"*/2 * * * *\",\"AccountId\":1,\"SalesChannelOption\":1,\"AccountOption\":1,\"SalesChannelOptionEnum\":1,\"AccountOptionEnum\":1,\"CreatedOnUtc\":\"2023-05-22T15:26:29.407\",\"UpdatedOnUtc\":\"2023-05-22T15:26:29.407\",\"IsActive\":true,\"TaskTypeSalesChannel\":[{\"Id\":74,\"TaskTypeId\":30,\"SalesChannelId\":9,\"CreatedOnUtc\":\"2023-05-22T15:26:29.407\",\"UpdatedOnUtc\":\"2023-05-22T15:26:29.407\",\"IsActive\":true}]}"));

Parameters

RecurringJobId
"SendCancellations"
Time
1761112931
CurrentCulture
""
CurrentUICulture
""

State

10/22/2025 06:02:11 (+49ms) Failed

An exception occurred during processing of a background job.

System.InvalidOperationException

Unable to resolve service for type 'Ekol360.Core.Service.CoreOrderService.ICoreCancelRequestService' while attempting to activate 'EkolPY.Integration.Manager.Tasks.SendCancellationsTask'.

System.InvalidOperationException: Unable to resolve service for type 'Ekol360.Core.Service.CoreOrderService.ICoreCancelRequestService' while attempting to activate 'EkolPY.Integration.Manager.Tasks.SendCancellationsTask'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_0.<PerformJobWithFilters>b__0()
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation)
   at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable`1 filters)
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId)

+60ms Processing

Server:
ekol-py-int-tst-794fdfb844-b7kxc:1
Worker:
dfb369e8

+15ms Enqueued

Triggered by recurring job scheduler

Queue:
default

10/22/2025 06:02:11 Created