HangfireIO / Hangfire

An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
https://www.hangfire.io
Other
9.43k stars 1.7k forks source link

Misleading retry error message #2445

Closed RGFuaWVs closed 1 month ago

RGFuaWVs commented 2 months ago

Package: Hangfire.Core.Processing

Problem Description

There seems to be a typo in the exception messages for background executions. A background execution failed and an exception was thrown as expected:

Hangfire.Processing.BackgroundExecution: Execution Worker is in the Failed state now due to an exception, execution will be retried no more than in 00:00:04

The part (...) execution will be retried no more (...) is misleading, since the execution will be retried.

Expected Result

Hangfire.Processing.BackgroundExecution: Execution Worker is in the Failed state now due to an exception, execution will be retried in no more than 00:00:04

Proposed Solution

Reformulating the error message, PR coming up 👋