feat: 手动执行计划作业 (#122)

This commit is contained in:
2024-05-15 14:50:26 +08:00
committed by GitHub
parent 7214a22ea5
commit 3b8336105a
9 changed files with 109 additions and 8 deletions

View File

@@ -60,6 +60,14 @@ public sealed class JobController(IJobCache cache) : ControllerBase<IJobCache, I
return Cache.EditAsync(req);
}
/// <summary>
/// 执行作业
/// </summary>
public Task ExecuteAsync(QueryJobReq req)
{
return Cache.ExecuteAsync(req);
}
/// <summary>
/// 计划作业是否存在
/// </summary>