Skip to content

Commit

Permalink
Merge pull request #2395 from chaoss/facade-minor-improve
Browse files Browse the repository at this point in the history
Remove unneeded sql statement from facade
  • Loading branch information
ABrain7710 committed May 3, 2023
2 parents b38f181 + a1aa430 commit 25b61b0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions augur/tasks/git/util/facade_worker/facade_worker/repofetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 25b61b0

Please sign in to comment.