AutoProductReleaseTask.ProcessRecurringAsync

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

var autoProductReleaseTask = Activate<AutoProductReleaseTask>();
await autoProductReleaseTask.ProcessRecurringAsync(
    null,
    "default",
    FromJson<TaskType>("{\"Id\":78,\"SystemName\":\"AutoProductRelease\",\"Name\":\"Otomatik Ürün Yayınlama\",\"JobClassName\":\"AutoProductReleaseTask\",\"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\":206,\"TaskTypeId\":78,\"SalesChannelId\":2,\"CreatedOnUtc\":\"2024-01-17T08:24:05.245897\",\"UpdatedOnUtc\":\"2024-01-17T08:24:05.245897\",\"IsActive\":true},{\"Id\":207,\"TaskTypeId\":78,\"SalesChannelId\":14,\"CreatedOnUtc\":\"2024-01-17T08:24:05.245897\",\"UpdatedOnUtc\":\"2024-01-17T08:24:05.245897\",\"IsActive\":true},{\"Id\":194,\"TaskTypeId\":78,\"SalesChannelId\":1,\"CreatedOnUtc\":\"2024-01-17T08:24:05.245897\",\"UpdatedOnUtc\":\"2024-01-17T08:24:05.245897\",\"IsActive\":true}]}"));

Parameters

RecurringJobId
"AutoProductRelease"
Time
1760710451
CurrentCulture
""
CurrentUICulture
""

State

10/17/2025 14:21:27 (+7m 15.013s) Failed

An exception occurred during performance of the job.

Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException

The database operation was expected to affect 1 row(s), but actually affected 0 row(s); data may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions.

Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: The database operation was expected to affect 1 row(s), but actually affected 0 row(s); data may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions.
   at Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal.NpgsqlModificationCommandBatch.ConsumeAsync(RelationalDataReader reader, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at EkolPY.Integration.Service.IntegrationTaskService.SaveTaskAsync() in /src/Integration/EkolPY.Integration.Service/IntegrationService.cs:line 270
   at EkolPY.Integration.Service.IntegrationTaskService.SetFailedAsync() in /src/Integration/EkolPY.Integration.Service/IntegrationService.cs:line 250
   at EkolPY.Integration.Service.IntegrationTaskService.SetFailedWithException(String message, Exception ex) in /src/Integration/EkolPY.Integration.Service/IntegrationService.cs:line 264
   at EkolPY.Integration.Manager.TaskBase`1.ProcessRecurringAsync(PerformContext context, String queueName, TaskType taskType) in /src/Integration/EkolPY.Integration.Manager/TaskBase.cs:line 162
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

+58ms Processing

Server:
ekol-py-int-tst-84b44df849-hc4tt:1
Worker:
92de1a93

+17ms Enqueued

Triggered by recurring job scheduler

Queue:
default

10/17/2025 14:14:12 Created