subMinutes($cronjobDocumentsPeriod); $take = setting('cron_job_batch_process_count'); $saat = date("H:i"); if(!getesit("type","")) { Cache::forget("cronjobDocuments"); } if(!getisset("type")) { exit(); } if($saat == "00:00") { Cache::forget("cronjob"); dump("forget cronjobDocuments"); } if(!Cache::has("cronjobDocuments")) { $start = new Carbon(simdi()); Cache::put("cronjobDocuments", simdi()); Log::debug("🟢📂 cron document start: " . simdi()); $allFiles = glob(base_path() . '/resources/views/cron-documents/*.blade.php'); $total = count($allFiles); $count = 0; try { ?> @if(!getesit("type","")) @includeIf('cron-documents.' . get("type")) @else @foreach ($allFiles as $file) $total, 'count' => $count, 'progress' => round($count * 100 / $total), 'description' => $description, 'start' => simdi() ]); $count++; ?> @include('cron-documents.' . basename(str_replace('.blade.php', '', $file))) @endforeach @endif getMessage()); Cache::forget("cronjobDocuments"); } ?> $total, 'count' => $total, 'progress' => 100, 'description' => "finish " . simdi() . " " . $start->diff($end)->format('%H:%I:%S') ]); Log::debug("🔴📂 cron document finish: " . simdi()); Log::debug("⏰📂 süre: " . $start->diff($end)->format('%H:%I:%S')); Cache::forget("cronjobDocuments"); } else { dump("Çalışan bir cron var onun bitmesini bekliyorum"); Log::debug("Çalışan bir cron documents var onun bitmesini bekliyorum"); }