From 744bcf5d31245baeb389dfd34e1adbc54261c271 Mon Sep 17 00:00:00 2001 From: "Sean P. Goggins" Date: Wed, 5 Jun 2024 10:34:11 -0500 Subject: [PATCH] increaing db sleep due to errors like /home/sean/github/rh-k12/augur/tasks/git/dependency_libyear_tasks/tasks.py,: cannot open `/home/sean/github/rh-k12/augur/tasks/git/dependency_libyear_tasks/tasks.py,' (No such file or directory) line: cannot open `line' (No such file or directory) 12,: cannot open `12,' (No such file or directory) in: cannot open `in' (No such file or directory) process_libyear_dependency_metrics: cannot open `process_libyear_dependency_metrics' (No such file or directory) Signed-off-by: Sean P. Goggins --- augur/application/db/lib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/augur/application/db/lib.py b/augur/application/db/lib.py index 0b4ebbdd6b..35dee313b6 100644 --- a/augur/application/db/lib.py +++ b/augur/application/db/lib.py @@ -305,8 +305,8 @@ def bulk_insert_dicts(logger, data: Union[List[dict], dict], table, natural_keys # print(str(stmnt.compile(dialect=postgresql.dialect()))) attempts = 0 - # creates list from 1 to 10 - sleep_time_list = list(range(1,11)) + # creates list from 1 to 10 / changed to 10-30 because deadlocks are taking longer + sleep_time_list = list(range(10,30)) deadlock_detected = False engine = get_engine()