SendNotificationsTask.StartJobSendNotifications

// Id: #1843770
using MR.Schedules;

await SendNotificationsTask.StartJobSendNotifications();

Parameters

CurrentCulture
""
CurrentUICulture
""
RecurringJobId
"StartJobSendNotifications"
Time
1746568082

State

05/06/2025 21:48:08 (+6.349s) Failed

An exception occurred during performance of the job.

System.InvalidOperationException (8b0a3a6e-6c6d-44af-9a83-8ff28e799fb7)

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

System.InvalidOperationException: Could not get a value of the job parameter `CurrentCulture`. See inner exception for details.
 ---> Npgsql.PostgresException (0x80004005): 57P03: the database system is in recovery mode
   at Npgsql.Internal.NpgsqlConnector.<ReadMessage>g__ReadMessageLong|213_0(NpgsqlConnector connector, Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
   at Npgsql.Internal.NpgsqlConnector.Authenticate(String username, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
   at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|193_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
   at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
   at Npgsql.ConnectorPool.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
   at Npgsql.ConnectorPool.<Get>g__RentAsync|31_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
   at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|45_0(Boolean async, CancellationToken cancellationToken)
   at Npgsql.NpgsqlConnection.Open()
   at Hangfire.PostgreSql.PostgreSqlStorage.CreateAndOpenConnection()
   at Hangfire.PostgreSql.PostgreSqlStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
   at Hangfire.PostgreSql.PostgreSqlConnection.GetJobParameter(String id, String name)
   at Hangfire.Server.PerformContext.GetJobParameter[T](String name, Boolean allowStale)
  Exception data:
    Severity: FATAL
    SqlState: 57P03
    MessageText: the database system is in recovery mode
    File: postmaster.c
    Line: 2328
    Routine: ProcessStartupPacket
   --- End of inner exception stack trace ---
   at Hangfire.Server.PerformContext.GetJobParameter[T](String name, Boolean allowStale)
   at Hangfire.CaptureCultureAttribute.OnPerforming(PerformingContext context)
   at Hangfire.Profiling.ProfilerExtensions.InvokeAction[TInstance](InstanceAction`1 tuple)
   at Hangfire.Profiling.SlowLogProfiler.InvokeMeasured[TInstance,TResult](TInstance instance, Func`2 action, String message)
   at Hangfire.Profiling.ProfilerExtensions.InvokeMeasured[TInstance](IProfiler profiler, TInstance instance, Action`1 action, String message)
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation)

+15ms Processing

Server:
8b0a3a6e-6c6d-44af-9a83-8ff28e799fb7
Worker:
fb07ab83

+5ms Enqueued

Triggered by recurring job scheduler

05/06/2025 21:48:02 Created