mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
update meilisearch move to schedule run command
This commit is contained in:
@@ -35,8 +35,8 @@ class Kernel extends ConsoleKernel
|
||||
$schedule->command('claim:settle')->hourly()->when(function () {
|
||||
return Carbon::now()->format('d') == '01';
|
||||
})->withoutOverlapping();
|
||||
$schedule->command('meilisearch:import')->weeklyOn(1, "03:00")->withoutOverlapping();
|
||||
|
||||
// $schedule->command('plugin:cronjob')->everyMinute()->withoutOverlapping();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -113,7 +113,7 @@ class MeiliSearchRepository extends BaseRepository
|
||||
$swapResult = $client->swapIndexes([[self::INDEX_NAME, $indexName]]);
|
||||
$times = 0;
|
||||
while (true) {
|
||||
if ($times == 600) {
|
||||
if ($times == 3600) {
|
||||
$msg = "total: $total, swap too long, times: $times, return false";
|
||||
do_log($msg);
|
||||
throw new NexusException($msg);
|
||||
|
||||
Reference in New Issue
Block a user