mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 11:13:26 +00:00
perf: 定时清理异步任务记录
This commit is contained in:
parent
907dc3c088
commit
a9fc93882c
@ -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())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user