Patch release with fixed regressions from 1.8.15, safe defaults for the Newtonsoft.Json package when previous versions are used and project-related tunings to speed up the build pipeline.
Hangfire.Core
-
Changed – Include fewer stack frames in exceptions come from
IServerFilterimplementations. -
Changed – Don’t include file information in the
ExceptionDetailsproperty of a FailedState instance. -
Changed – Switch back to
CancellationEventusage instead ofCancellationToken.WaitHandle. -
Fixed – Don’t commit external transaction in the
BackgroundJobStateChangerimplementation. - Fixed – Use safe default serializer settings for Newtonsoft.Json 12.X and below.
-
Project – Fix builds for the
net451platform when using .NET 9.0. -
Project – Significantly reduce execution time of unit tests in the
RecurringJobSchedulerFactsclass. -
Project – Bump
Microsoft.CodeAnalysis.NetAnalyzerspackage to version 9.0.0.
Hangfire.SqlServer
-
Changed – Use vanilla ADO.NET when fetching a job in the
SqlServerJobQueueimplementation. -
Changed – Decrease the
LockTimeouttime when calling thesp_getapplockprocedure to 1 second for less blocking. - Fixed – SqlException: Must declare the scalar variable “key” in delayed and recurring job schedulers.
- Project – Disable parallel tests execution when building under .NET 9.0.
-
Project – Run tests over the latest Microsoft.Data.SqlClient package and the
net6.0platform. - Project – Reduce execution time of integration tests.
-
Project – Disable
PoolBlockingPeriodsetting on AppVeyor to handle transient test failures.
by