IPowerExchangeSyncJob.Run

// Id: #140910
using EnergyDataHub.Data.Hangfire.Jobs;

var powerExchangeSyncJob = Activate<IPowerExchangeSyncJob>();
await powerExchangeSyncJob.Run();

Parameters

CurrentCulture
""
CurrentUICulture
""
RecurringJobId
"IPowerExchangeSyncJob"
Time
1768714745

State

01/18/2026 07:09:35 (+1.830s) Failed

An exception occurred during performance of the job.

System.InvalidOperationException (edh:1037804)

Could not get a value of the job parameter `CurrentUICulture`. See inner exception for details.

System.InvalidOperationException: Could not get a value of the job parameter `CurrentUICulture`. See inner exception for details. ---> Npgsql.PostgresException: 53300: remaining connection slots are reserved for roles with the SUPERUSER attribute
   at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|213_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken, Boolean isFirstAttempt)
   at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
   at Npgsql.PoolingDataSource.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
   at Npgsql.PoolingDataSource.<Get>g__RentAsync|33_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
   at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|42_0(Boolean async, CancellationToken cancellationToken)
   at Hangfire.PostgreSql.PostgreSqlStorage.CreateAndOpenConnection()
   at Hangfire.PostgreSql.PostgreSqlStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
   at Hangfire.Server.PerformContext.GetJobParameter[T](String name, Boolean allowStale)

   --- End of inner exception stack trace ---
   at Hangfire.Server.PerformContext.GetJobParameter[T](String name, Boolean allowStale)
   at Hangfire.CaptureCultureAttribute.OnPerforming(PerformingContext context)
   at Hangfire.Server.BackgroundJobPerformer.InvokeOnPerforming(KeyValuePair`2 ctx)

+1h 30m Processing

Server:
edh:1037804
Worker:
b683af86

+10ms Enqueued

Triggered by recurring job scheduler

01/18/2026 05:39:05 Created