From ee80cffd7e12014b40e780d2f44f6211a2ad1c3c Mon Sep 17 00:00:00 2001 From: Isaac Milarsky Date: Wed, 3 May 2023 12:36:25 -0500 Subject: [PATCH] make sure status of repo is updated when the cloning fails Signed-off-by: Isaac Milarsky --- augur/tasks/git/facade_tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/augur/tasks/git/facade_tasks.py b/augur/tasks/git/facade_tasks.py index 987ff51e88..5357644340 100644 --- a/augur/tasks/git/facade_tasks.py +++ b/augur/tasks/git/facade_tasks.py @@ -359,6 +359,9 @@ def clone_repos(): except GitCloneError: # continue to next repo, since we can't calculate # commit_count or weight without the repo cloned + + setattr(repoStatus,"facade_status", CollectionState.FAILED_CLONE.value) + session.commit() continue # get the commit count