����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 216.73.216.178 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/www/vendor/laravel/framework/src/Illuminate/Queue/Console/ |
Upload File : |
<?php namespace Illuminate\Queue\Console; use Carbon\Carbon; use Illuminate\Bus\BatchRepository; use Illuminate\Bus\DatabaseBatchRepository; use Illuminate\Bus\PrunableBatchRepository; use Illuminate\Console\Command; class PruneBatchesCommand extends Command { /** * The console command signature. * * @var string */ protected $signature = 'queue:prune-batches {--hours=24 : The number of hours to retain batch data} {--unfinished= : The number of hours to retain unfinished batch data }'; /** * The console command description. * * @var string */ protected $description = 'Prune stale entries from the batches database'; /** * Execute the console command. * * @return void */ public function handle() { $repository = $this->laravel[BatchRepository::class]; $count = 0; if ($repository instanceof PrunableBatchRepository) { $count = $repository->prune(Carbon::now()->subHours($this->option('hours'))); } $this->info("{$count} entries deleted!"); if ($unfinished = $this->option('unfinished')) { $count = 0; if ($repository instanceof DatabaseBatchRepository) { $count = $repository->pruneUnfinished(Carbon::now()->subHours($this->option('unfinished'))); } $this->info("{$count} unfinished entries deleted!"); } } }