HangfireIO / HangfireIO/Hangfire
How to set AbortOnConnectFail
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
Hi there
I got a message, when I launch my asp.net core application first time and failed to connect to redis server.
> An error occurred while starting the application.
RedisConnectionException: It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. SocketFailure on PING
StackExchange.Redis.ConnectionMultiplexer.ConnectImpl(Func multiplexerFactory, TextWriter log)
>RedisConnectionException: It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. SocketFailure on PING
Afterwards, I can't try to connect redis server again until fully restart application.
It seems I have to disable AbortOnConnectFail, but I don't where and how to do this.
Can anyone help me?
Contributor guide
Research direction
The report mentions ASP.NET Core, StackExchange.Redis, and the AbortOnConnectFail setting but names no repository file, test, or entry point. Start by locating Hangfire's Redis connection configuration and verify whether the setting can be passed through; done means a failed initial Redis connection can recover without restarting the application.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, redis
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100