perf: 定时清理异步任务记录

This commit is contained in:
kuaifan 2023-01-19 12:01:38 +08:00
parent 907dc3c088
commit a9fc93882c

View File

@ -60,7 +60,7 @@ class DeleteTmpTask extends AbstractTask
/** /**
* 表pre_task_worker * 表pre_task_worker
*/ */
case 'tw': case 'task_worker':
{ {
TaskWorker::onlyTrashed() TaskWorker::onlyTrashed()
->where('deleted_at', '<', Carbon::now()->subHours($this->hours)->toDateTimeString()) ->where('deleted_at', '<', Carbon::now()->subHours($this->hours)->toDateTimeString())