// Job ID: #423089
using EkolPY.Integration.Manager.Tasks;
var retrieveOrdersTask = Activate<RetrieveOrdersTask>();
await retrieveOrdersTask.ProcessRecurringAsync(
null,
"default",
FromJson<TaskType>("{\"Id\":27,\"SystemName\":\"RetrieveOrders\",\"Name\":\"Siparişlerin Çekimi\",\"JobClassName\":\"RetrieveOrdersTask\",\"Type\":\"Recurring\",\"Cron\":\"*/1 * * * *\",\"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\":44,\"TaskTypeId\":27,\"SalesChannelId\":1,\"CreatedOnUtc\":\"2023-05-22T15:26:29.407\",\"UpdatedOnUtc\":\"2023-05-22T15:26:29.407\",\"IsActive\":false},{\"Id\":102,\"TaskTypeId\":27,\"SalesChannelId\":14,\"CreatedOnUtc\":\"2023-05-22T15:26:29.407\",\"UpdatedOnUtc\":\"2023-05-22T15:26:29.407\",\"IsActive\":true},{\"Id\":100,\"TaskTypeId\":27,\"SalesChannelId\":3,\"CreatedOnUtc\":\"2023-05-22T15:26:29.407\",\"UpdatedOnUtc\":\"2023-05-22T15:26:29.407\",\"IsActive\":true},{\"Id\":101,\"TaskTypeId\":27,\"SalesChannelId\":2,\"CreatedOnUtc\":\"2023-05-22T15:26:29.407\",\"UpdatedOnUtc\":\"2023-05-22T15:26:29.407\",\"IsActive\":true},{\"Id\":92,\"TaskTypeId\":27,\"SalesChannelId\":7,\"CreatedOnUtc\":\"2023-05-22T15:26:29.407\",\"UpdatedOnUtc\":\"2023-05-22T15:26:29.407\",\"IsActive\":true},{\"Id\":177,\"TaskTypeId\":27,\"SalesChannelId\":15,\"CreatedOnUtc\":\"2023-05-22T15:26:29.407\",\"UpdatedOnUtc\":\"2023-05-22T15:26:29.407\",\"IsActive\":true},{\"Id\":190,\"TaskTypeId\":27,\"SalesChannelId\":5,\"CreatedOnUtc\":\"2023-08-23T09:04:44.668\",\"UpdatedOnUtc\":\"2023-08-23T09:04:44.668\",\"IsActive\":true}]}"));
| RecurringJobId | |
| Time | |
| CurrentCulture | |
| CurrentUICulture | |
An exception occurred during performance of the job.
A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
System.InvalidOperationException: A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913. at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() 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.AddTaskLog(TaskLogLevel logLevel, String[] messages) in C:\Users\taner.er\source\repos\ekol360\Integration\EkolPY.Integration.Service\IntegrationService.cs:line 154 at EkolPY.Integration.Service.IntegrationTaskService.AddTaskError(Exception ex, String[] msgs) in C:\Users\taner.er\source\repos\ekol360\Integration\EkolPY.Integration.Service\IntegrationService.cs:line 144 at EkolPY.Integration.Service.IntegrationTaskService.SetFailedWithException(String message, Exception ex) in C:\Users\taner.er\source\repos\ekol360\Integration\EkolPY.Integration.Service\IntegrationService.cs:line 244 at EkolPY.Integration.Manager.TaskBase`1.ProcessRecurringAsync(PerformContext context, String queueName, TaskType taskType) in C:\Users\taner.er\source\repos\ekol360\Integration\EkolPY.Integration.Manager\TaskBase.cs:line 162 at System.Runtime.CompilerServices.TaskAwaiter.GetResult()