command('gold-credit:process-overdue') ->everyFiveMinutes() ->name('gold_credit_process_overdue') ->withoutOverlapping(); // تیک قیمت — ۶ بار در دقیقه با فاصله ۱۰ ثانیه (montzar + zaarbox + محصولات) // نیاز: * * * * * php artisan schedule:run // یا یک‌بار: php artisan schedule:bootstrap $schedule->command('prices:tick-loop --iterations=6 --interval=10') ->everyMinute() ->name('prices_tick_10s') ->withoutOverlapping(58); $schedule->command('prices:refresh-zaarbox') ->everyThirtyMinutes() ->name('refresh_zaarbox_prices') ->withoutOverlapping(); // پاک‌سازی و downsample تاریخچه قیمت + لاگ‌های حجیم (۳۱ روز) — ساعت ۱۲ شب $schedule->command('prices:prune') ->dailyAt('00:00') ->name('prune_price_snapshots') ->withoutOverlapping(); // ترمیم اسناد ریالی جاافتادهٔ پرگار — سریع برای موارد تازه $schedule->command('pargar:requeue-wallet-documents --execute --days=14') ->hourly() ->name('pargar_requeue_wallet_docs_hourly') ->withoutOverlapping(50); // یک‌بار در شبانه‌روز همهٔ مشتریان از ابتدای اتصال پرگار $schedule->command('pargar:requeue-wallet-documents --execute --all') ->dailyAt('03:40') ->name('pargar_requeue_wallet_docs_all') ->withoutOverlapping(110); $schedule->command('automations:run') ->everyMinute() ->name('automations_run') ->withoutOverlapping(50); $schedule->command('colleague:poll-pending-orders') ->everyMinute() ->name('colleague_poll_pending_orders') ->withoutOverlapping(58); } protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }