Split Hangfire Job Server and Hangfire Dashboard Applications
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?
We have disabled JobExecution by setting IsJobExecutionEnabled = false
https://docs.abp.io/en/abp/latest/Background-Jobs#disable-job-execution