cleanup check

This commit is contained in:
xiaomlove
2024-03-23 04:51:59 +08:00
parent 9f211df038
commit 287302df7f
17 changed files with 207 additions and 9 deletions

39
app/Jobs/CheckCleanup.php Normal file
View File

@@ -0,0 +1,39 @@
<?php
namespace App\Jobs;
use App\Console\Commands\Cleanup;
use App\Repositories\CleanupRepository;
use App\Repositories\ToolRepository;
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 CheckCleanup 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::checkCleanup();
do_log("CheckCleanup job run success.");
}
}