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

@@ -98,8 +98,7 @@ class Test extends Command
*/
public function handle()
{
$diff = get_setting("system.alarm_email_receiver");
dd($diff);
CleanupRepository::checkQueueFailedJobs();
}
}

View File

@@ -3,7 +3,9 @@
namespace App\Console;
use App\Jobs\CheckCleanup;
use App\Jobs\CheckQueueFailedJobs;
use Carbon\Carbon;
use Illuminate\Console\Scheduling\Event;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
@@ -38,6 +40,7 @@ class Kernel extends ConsoleKernel
})->withoutOverlapping();
$schedule->command('meilisearch:import')->weeklyOn(1, "03:00")->withoutOverlapping();
$schedule->command('torrent:load_pieces_hash')->dailyAt("01:00")->withoutOverlapping();
$schedule->job(new CheckQueueFailedJobs())->everySixHours()->withoutOverlapping();
$this->registerScheduleCleanup($schedule);
}