From a1aa430f89eca5d53785c126165c9780d2d0588b Mon Sep 17 00:00:00 2001 From: Isaac Milarsky Date: Wed, 3 May 2023 13:39:50 -0500 Subject: [PATCH] remove unneeded sql statement Signed-off-by: Isaac Milarsky --- .../tasks/git/util/facade_worker/facade_worker/repofetch.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/augur/tasks/git/util/facade_worker/facade_worker/repofetch.py b/augur/tasks/git/util/facade_worker/facade_worker/repofetch.py index eb97486ac6..9a26bc5999 100644 --- a/augur/tasks/git/util/facade_worker/facade_worker/repofetch.py +++ b/augur/tasks/git/util/facade_worker/facade_worker/repofetch.py @@ -164,11 +164,6 @@ def git_repo_initialize(session, repo_git): # If cloning failed, log it and set the status back to new update_repo_log(session, row.repo_id, f"Failed ({return_code})") - query = s.sql.text("""UPDATE augur_operations.collection_status SET facade_status='Failed Clone', facade_task_id=NULL WHERE repo_id=:repo_id - """).bindparams(repo_id=row.repo_id) - - session.execute_sql(query) - session.log_activity('Error', f"Could not clone {git}") raise GitCloneError(f"Could not clone {git}")