big update all menus
This commit is contained in:
@@ -19,3 +19,14 @@ Schedule::command('notifications:prune')
|
||||
->timezone(config('app.timezone'))
|
||||
->withoutOverlapping()
|
||||
->onOneServer();
|
||||
|
||||
Schedule::command('nas:check-mikrotiks')
|
||||
->everyMinute()
|
||||
->withoutOverlapping()
|
||||
->onOneServer();
|
||||
|
||||
Schedule::call(function () {
|
||||
\App\Models\CustomerNasAccount::query()->whereIn('status', ['active','disabled'])
|
||||
->where(fn ($q) => $q->whereNull('last_reconciled_at')->orWhere('last_reconciled_at','<=',now()->subMinutes(5)))
|
||||
->select('id')->chunkById(200, fn ($rows) => $rows->each(fn ($row) => \App\Jobs\ReconcileCustomerNasAccount::dispatch($row->id)));
|
||||
})->everyMinute()->name('nas-reconcile-accounts')->withoutOverlapping()->onOneServer();
|
||||
|
||||
Reference in New Issue
Block a user