The ABP background workers and jobs have some awful names in the Hangfire dashboard. The Volo.Abp.Identity.Session.IdentitySessionCleanupBackgroundWorker is acceptable to me even if it is a bit long. However, HangfirePeriodicBackgroundWorker<BackgroundJobWork>.DoWorkAsync is simply awful for the recurringJobId. What is the cleanest way to set the name of these recurring jobs to a more user friendly name?
A secondary question would be if there is a way to remove log entries for these jobs which run every 5 minutes after a relatively short period of time? They clutter up the administration dashboard obscuring the "application" jobs statuses in the clutter.
4 Answer(s)
-
0
hi
You can Custom Job Name by configure
GetBackgroundJobNamedelegate of theAbpBackgroundJobOptionsto change the default job name.Configure<AbpBackgroundJobOptions>(options => { options.GetBackgroundJobName = (jobType) => { if (jobTyep == typeof(EmailSendingArgs)) { return "emails"; } return BackgroundJobNameAttribute.GetName(jobType); }; });Thanks.
-
0
if there is a way to remove log entries for these jobs which run every 5 minutes after a relatively short period of time?
It seems this is related to Hangfire Dashboard?
Thanks.
-
0
Yes. This is related to the Hangfire Dashboard and the ID for the job shown there.
-
0
hi
This is related to the Hangfire Dashboard and the ID for the job shown there.
Maybe you can customize the Hangfire Dashboard page, but the ABP framework hasn’t changed it.
Thanks.
