mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-03 21:26:35 +08:00
refactor: 精简base.repo与base.app等
This commit is contained in:
@@ -193,7 +193,7 @@ func (m *machineCronJobAppImpl) RunCronJob(key string) {
|
||||
|
||||
cronJob := new(entity.MachineCronJob)
|
||||
cronJob.Key = key
|
||||
err := m.GetBy(cronJob)
|
||||
err := m.GetByCond(cronJob)
|
||||
// 不存在或禁用,则移除该任务
|
||||
if err != nil || cronJob.Status == entity.MachineCronJobStatusDisable {
|
||||
scheduler.RemoveByKey(key)
|
||||
|
||||
Reference in New Issue
Block a user