feat(order): wait for colleague callback before settling wallet
Keep cover orders pending until colleague sts 2/4/6 via callback or 35s poll. Nightly prices:prune also drops old log tables. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -31,10 +31,11 @@ class Kernel extends ConsoleKernel
|
||||
->name('refresh_zaarbox_prices')
|
||||
->withoutOverlapping();
|
||||
|
||||
// پاکسازی و downsample تاریخچه — ساعت ۱۲ شب
|
||||
// پاکسازی و downsample تاریخچه قیمت + لاگهای حجیم (۳۱ روز) — ساعت ۱۲ شب
|
||||
$schedule->command('prices:prune')
|
||||
->dailyAt('00:00')
|
||||
->name('prune_price_snapshots');
|
||||
->name('prune_price_snapshots')
|
||||
->withoutOverlapping();
|
||||
|
||||
// ترمیم اسناد ریالی جاافتادهٔ پرگار — سریع برای موارد تازه
|
||||
$schedule->command('pargar:requeue-wallet-documents --execute --days=14')
|
||||
@@ -52,6 +53,11 @@ class Kernel extends ConsoleKernel
|
||||
->everyMinute()
|
||||
->name('automations_run')
|
||||
->withoutOverlapping(50);
|
||||
|
||||
$schedule->command('colleague:poll-pending-orders')
|
||||
->everyMinute()
|
||||
->name('colleague_poll_pending_orders')
|
||||
->withoutOverlapping(58);
|
||||
}
|
||||
|
||||
protected function commands()
|
||||
|
||||
Reference in New Issue
Block a user