删除hangfire(不支持毫秒级别)

This reverts commit 49a9eb5460.
This commit is contained in:
陈淳
2022-11-29 12:34:45 +08:00
parent 0f2dc4d3ba
commit d97ef84b7e
5 changed files with 0 additions and 78 deletions

View File

@@ -221,33 +221,6 @@ namespace Yi.Framework.ApiMicroservice.Controllers
return Result.Success("http://localhost:19001/hangfire");
}
/// <summary>
/// hangfireJob测试
/// </summary>
/// <returns></returns>
[HttpGet]
public Result HangfireStratJobTest()
{
Dictionary<string, object> data = new Dictionary<string, object>()
{
{JobConst.method,"get" },
{JobConst.url,"https://www.baidu.com" }
};
RecurringJob.AddOrUpdate<HttpJob>(nameof(HttpJob),(Job)=>Job.Execute2(data), "*/5 * * * * ?");
return Result.Success("http://localhost:19001/hangfire");
}
/// <summary>
/// hangfireJob测试
/// </summary>
/// <returns></returns>
[HttpGet]
public Result HangfireStopJobTest()
{
RecurringJob.RemoveIfExists(nameof(HttpJob));
return Result.Success();
}
/// <summary>
/// 树形结构构建测试
/// </summary>