Skip to content

Commit 735c5fe

Browse files
committed
Parameter name fixup
1 parent 74258f9 commit 735c5fe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

backup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import logging
33
import os
44
import pathlib
5+
from asyncio.exceptions import CancelledError, TimeoutError
56
from datetime import datetime
67
from typing import List
78

@@ -128,7 +129,7 @@ async def _backup_pgdump(
128129
try:
129130
pg_major_version = (await postgres.get_postgres_version(db_host, db_port, db_name, db_user, db_pwd)).major
130131
blobs = "large-objects" if pg_major_version >= 16 else "blobs"
131-
except ConnectionRefusedError as e:
132+
except (ConnectionRefusedError, CancelledError, TimeoutError) as e:
132133
log.error(f"<{ib_name}> {str(e)}")
133134
return core_models.InfoBaseBackupTaskResult(ib_name, False)
134135

update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async def _update_info_base(ib_name, dry=False):
179179
# Процесс не может получить доступ к файлу, так как этот файл занят другим процессом.
180180
pause = (random.randint(0, 100_000)) / 10_000
181181
# Обновляет информационную базу и конфигурацию БД
182-
await execute_v8_command(ib_name, v8_command, log_filename, permission_code, external_pause=pause)
182+
await execute_v8_command(ib_name, v8_command, log_filename, permission_code, create_subprocess_pause=pause)
183183
if is_multiupdate:
184184
# Если в цепочке несколько обновлений, то после каждого проверяет версию ИБ,
185185
# и продолжает только в случае, если ИБ обновилась.

0 commit comments

Comments
 (0)