Hi,
okay : )
in my httpapi.host project. This fixed the problem however i didn't understand which module is implementing the DefaultBgJob implementation. Can you give me a hint about it probably it is efcoremodule since it should be the infra project. And why AbpBackgroundJobsHangfireModule didn't override it i didn't understand. But now it works in this order.
They are different implementations. After installing the Hangfire provider, you need to remove other implementations.
The second thing i want to ask is about HangfirePeriodicBackgroundWorkerAdapter<BackgroundJobWorker>.DoWorkAsync why is this work triggered every 5 secs? I believe that's the default value. How can that value be changed? Also is this worker are dispatching BackgroundJobs? What is the purpose of this worker can you elaborate? Is it possible to disable it and delete it?
Please remove AbpBackgroundJobsModule
and delete the job in the hangfire dashboard.
I believe it still uses default fifo implementation cause i can see that it hits background job. But sometimes it hangs and never fire the background job, could be because of the distributed lock i suppose. What am i missing over here. Can you point me to the right direction?
Can you provide the full steps or a simple project to reproduce the problem? I will check it.
Hi,
so when i run the project everythings works fine. But the weird part is i don't see any background jobs enqueued in my hangfire dashboard with parameters.
Try using the UseAbpHangfireDashboard
method and BackgroundJobNameAttribute
to define job names.
[BackgroundJobName("MyJobName")]
public class EmailSendingJob
: AsyncBackgroundJob<EmailSendingArgs>, ITransientDependency
{
private readonly IEmailSender _emailSender;
public EmailSendingJob(IEmailSender emailSender)
{
_emailSender = emailSender;
}
public override async Task ExecuteAsync(EmailSendingArgs args)
{
await _emailSender.SendAsync(
args.EmailAddress,
args.Subject,
args.Body
);
}
}
You can check this https://codejack.com/2022/12/deploying-abp-io-to-an-azure-appservice/
HI,
I can't reproduce the problem.
My steps:
Volo.Abp.MailKit
to the Domain
project and add typeof(AbpMailKitModule)
context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>());
Hi,
Install Mailkit in the Domain module (Since we get a warning if we try to send a test email without it)
Did you receive the test email?
Hi,
You can just create a project with angular UI, and delete the modules from the package.json and code.