项目邮件配置修改--023

Uat_Study
hang 2023-08-24 11:38:51 +08:00
parent b23befe18c
commit 7c0c096be4
3 changed files with 8 additions and 3 deletions

View File

@ -24,6 +24,8 @@ using Invio.Extensions.Authentication.JwtBearer;
using Microsoft.AspNetCore.SignalR;
using IRaCIS.Core.Domain.Share;
using Microsoft.AspNetCore.StaticFiles;
using IRaCIS.Application.Services.BackGroundJob;
using IRaCIS.Core.Application.Helper;
namespace IRaCIS.Core.API
{
@ -236,6 +238,10 @@ namespace IRaCIS.Core.API
endpoints.MapHub<UploadHub>("/UploadHub");
});
HangfireJobHelper.NotImmediatelyOnceOnlyJob<IIRaCISHangfireJob>(t => t.InitHangfireJobTaskAsync(),TimeSpan.FromSeconds(1));
}
}
}

View File

@ -35,8 +35,7 @@ namespace IRaCIS.Core.API
services.AddHangfireServer(option =>
{
option.ServerName = "test_study";
option.Queues = new[] { "immediately_once","default" };
option.Queues = new[] { "immediately_once","default","sys_init" , "not_immediately_once" };
});
}

View File

@ -56,7 +56,7 @@ namespace IRaCIS.Application.Services.BackGroundJob
//初始化
//await InitInternationlizationDataAndWatchJsonFileAsync();
await InitInternationlizationDataAndWatchJsonFileAsync();
//创建邮件定时任务