force es8 at startup

This commit is contained in:
simon 2022-07-22 17:22:06 +07:00
parent f0a44678ed
commit 503a4ed822
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
"""handle custom startup functions"""
import os
import sys
from django.apps import AppConfig
from home.src.es.connect import ElasticWrap
@ -104,7 +105,7 @@ class StartupCheck:
"required elasticsearch version: "
+ f"{self.MIN_MAJOR}.{self.MIN_MINOR}"
)
# sys.exit(1)
sys.exit(1)
print("elasticsearch version check passed")