Open Closed

AbpBackgroundWorkersHangfireModule exception without using hangfire configuration ? #2578


User avatar
0
selinkoykiran created

Hello all, We're using hangfire background worker in our project we we're referenced this library in our dependent modules like below :

But this module has an issue , after that module is injected in our domain module , we are getting errors like below at irrelevant places like identity Server . We've disabled the usage of backgroundworker and job inside of Identity Server Module :

But exception is still occurring. We've trace your code and we are thinking the base problem is in AbpHangfireModule We're thinking this issue is occurring because of wrong ordered configuration . You can see below your AbpBackgroundWorkersHangfireModule using AbpBackgroundWorkerOptions .

when we disable the AbpBackgroundWorkerOptions , it'll pass the exception but it'll continue with below module which is AbpHangfireModule.

So because of the OnApplicationInitialization method , even we don't have any job storage for example inside Identity Server module, we're getting below irrelevant exception.

Could you check the usage of this module. We are bypassing the problem like below in our project , we just wrapped exception with try catch and we don't do anything (override the AbpHangfireModule like below ):

So with this bypassing we can use IdentityServer and other related modules with hangfire module without exception.

Exception like below :

But we're thinking you should check this one.

Thank you.

  • ABP Framework version: v5.1.1
  • UI type: MVC
  • DB provider: EF Core
  • **Tiered (MVC) : yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

4 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I will check it, thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Will resolved by https://github.com/abpframework/abp/pull/11591

  • User Avatar
    0
    selinkoykiran created

    Don't understand the last message , you'll be checking the issue right ?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @selinkoykiran, your problem will be resolved with this PR.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11