(20241204) Arihant server IP change chaos handling.

This commit is contained in:
2024-12-04 14:24:47 +05:30
parent 0d0f28d48c
commit 9a3ef5fea4
18 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -136,8 +136,10 @@ async def app_startup(**kwargs):
connection_string = constants.MONGO_DATA_CONNECTION_STRING,
database_name = constants.MONGO_DATA_DATABASE_NAME,
max_connections = 10,
debug = True
debug = True,
debug_only_errors = True
)
await current_app.mongo.connect()
# Get the script data:
script_id = os.environ["SCRIPT_ID"]
+1 -1
View File
@@ -50,7 +50,7 @@ from utils_v2.system import files
# Directories:
PROJECT_DIRECTORY = files.get_parent_directory(files.get_parent_directory(files.get_cwd()))
PROJECT_DIRECTORY = files.get_parent_directory(files.get_file_directory(), depth = 1)
CREDENTIALS_DIRECTORY = os.path.join(PROJECT_DIRECTORY, "cred")
MONGO_CREDENTIALS_DIRECTORY = os.path.join(CREDENTIALS_DIRECTORY, "mongo")
MODELS_DIRECTORY = os.path.join(PROJECT_DIRECTORY, "models")
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.