HangfireIO / HangfireIO/Hangfire

Deprication of `UseHangfireServer` in favor of `AddHangfireServer` does not allow for DB migrations to run before it

Open
#2,262 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

Before, using (of `Hangfire.AspNetCore`) `UseHangfireServer` would mean that I can control when the hangfire server is initialised.
This in turns allows me to create the database via migrations and apply custom schemas and permissions.
However, by depricating it in favor of `AddHangfireServer` means I can no longer do this.

I would expect the support of both.

Contributor guide

Open the contributing guide

Research direction

Start by comparing the Hangfire.AspNetCore entry points UseHangfireServer and AddHangfireServer, focusing on when the server is initialized relative to database migrations and custom schema or permission setup. Confirm the expected startup ordering and whether both entry points should remain supported; done means migrations can run before the server starts.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.