update meilisearch move to schedule run command

This commit is contained in:
xiaomlove
2023-06-15 21:09:12 +08:00
parent b8c4e1cbbc
commit 0036c4ad28
3 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -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);