RetrieveOrdersTask.ProcessRecurringAsync

// Job ID: #266218
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}]}"));

Parameters

RecurringJobId
"RetrieveOrders"
Time
1753251246
CurrentCulture
""
CurrentUICulture
""

State

07/23/2025 06:14:22 (+16.041s) Failed

An exception occurred during processing of a background job.

Npgsql.NpgsqlOperationInProgressException

The connection is already in state 'Executing'

Npgsql.NpgsqlOperationInProgressException (0x80004005): The connection is already in state 'Executing'
   at Npgsql.Internal.NpgsqlConnector.<StartUserAction>g__DoStartUserAction|259_0(<>c__DisplayClass259_0& )
   at Npgsql.Internal.NpgsqlConnector.StartUserAction(ConnectorState newState, NpgsqlCommand command, CancellationToken cancellationToken, Boolean attemptPgCancellation)
   at Npgsql.Internal.NpgsqlConnector.Reset(Boolean async)
   at Npgsql.NpgsqlConnection.CloseAsync(Boolean async)
   at Npgsql.NpgsqlConnection.Close()
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Close()
   at Microsoft.EntityFrameworkCore.Storage.RelationalTransaction.ClearTransaction()
   at Microsoft.EntityFrameworkCore.Storage.RelationalTransaction.Dispose()
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.ResetState(Boolean disposeDbConnection)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.Dispose()
   at Microsoft.EntityFrameworkCore.DbContext.Dispose()
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.Dispose()
   at Hangfire.JobActivatorScope.Dispose()
   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)

+53ms Processing

Server:
ekol-py-int-tst-57fb799fc-6rlzd:1
Worker:
f15674f0

+23ms Enqueued

Triggered by recurring job scheduler

Queue:
default

07/23/2025 06:14:06 Created