CheckQueueFailedJobs

This commit is contained in:
xiaomlove
2024-07-04 03:21:53 +08:00
parent 36fef3e834
commit 137be0c62a
8 changed files with 99 additions and 9 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Jobs;
use App\Repositories\CleanupRepository;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class CheckQueueFailedJobs implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
CleanupRepository::checkQueueFailedJobs();
do_log("checkQueueFailedJobs run success.");
}
}