Skip to content

Cultiv.Hangfire 3.0.0

Compare
Choose a tag to compare
@nul800sebastiaan nul800sebastiaan released this 21 Aug 08:09
· 7 commits to main since this release

What's Changed

  • Hangfire dependency updated to 1.8.5

While this doesn't seem to merit a new major release, Hangfire did a large overhaul in a minor release which really should have been a major release. This includes database migrations which I've enabled by default (the EnableHeavyMigrations setting).
They warn:

If your background processing is quite intensive, you should apply the migration manually by setting the SINGLE_USER mode for the database to avoid deadlocks and reduce migration time.

You should read the Hangfire upgrade docs to prepare and learn what will happen: https://docs.hangfire.io/en/latest/upgrade-guides/upgrading-to-hangfire-1.8.html

For clarity, what I've changed is:

  • .SetDataCompatibilityLevel(CompatibilityLevel.Version_180)
  • PrepareSchemaIfNecessary = true,
  • EnableHeavyMigrations = true,

⚠️Note: you will need to update the Hangfire dependency in your solution first, before upgrading this package. You will get downgrade warnings otherwise, see screenshot.

image

Full Changelog: v2.3.0...v3.0.0