abp icon indicating copy to clipboard operation
abp copied to clipboard

Split Hangfire Job Server and Hangfire Dashboard Applications

Open eneskoroglu opened this issue 5 years ago • 1 comments

See https://github.com/abpframework/abp/tree/dev/modules/background-jobs/app/Volo.Abp.BackgroundJobs.DemoApp.HangFire

Originally posted by @realLiangshiwei in https://github.com/abpframework/abp/issues/4799#issuecomment-660411373

  • Your ABP Framework version: 4.3.0
  • Your database provider(EF Core)
  • Steps needed to reproduce the problem.

We use PostgreSql. We are trying to process Hangfire jobs in a seperate console application regarding to #4799 . But we want to continue to serve Hangfire Dashboard inside from our aspnet-core webapi (ABP Application Startup Template generated) project. Because if we serve Dashboard from console app, we cannot reach ICurrentUser and cannot make Authorization controls.

How can we serve Dashboard from aspnet-core webapi project without processing jobs from webapi project?

eneskoroglu avatar May 06 '21 11:05 eneskoroglu

We have disabled JobExecution by setting IsJobExecutionEnabled = false

https://docs.abp.io/en/abp/latest/Background-Jobs#disable-job-execution

eneskoroglu avatar May 08 '21 09:05 eneskoroglu