HangfireIO / HangfireIO/Hangfire

Provide some way for cleaning RecurringJob.Instance

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

Description

Issue
I have integration tests with separare database instances for write, read in docker so they up one by one
Issue is when It switch between database and reset database connection - Recurring Job can't handle connection change because it's has instance which copy old static JobStorage.Current to his variable

Contributor guide

Open the contributing guide

Research direction

Start by tracing RecurringJob.Instance and how it captures JobStorage.Current during database connection changes. Define how the recurring-job instance should be cleaned or recreated after a storage reset, then verify the behavior with the described integration-test setup using separate write and read database instances.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.