Skip to content

Commit

Permalink
housekeeper all repos case 0
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-heim committed Jul 9, 2019
1 parent fd2f819 commit ce28cf5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 8 additions & 6 deletions augur/housekeeper/housekeeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,16 @@ def shutdown_updates(self):
def sort_issue_repos(self, jobs):

for job in jobs:

if job['repo_group_id'] != 0:
# Query all repos and last repo id
repoUrlSQL = s.sql.text("""
SELECT repo_git, repo_id FROM repo WHERE repo_group_id = {} ORDER BY repo_id ASC
""".format(job['repo_group_id']))

repoUrlSQL = s.sql.text("""
SELECT repo_git, repo_id FROM repo WHERE repo_group_id = {} ORDER BY repo_id ASC
""".format(job['repo_group_id']))
else:
repoUrlSQL = s.sql.text("""
SELECT repo_git, repo_id FROM repo ORDER BY repo_id ASC
""".format(job['repo_group_id']))
rs = pd.read_sql(repoUrlSQL, self.db, params={})
print(len(rs))
if len(rs) == 0:
logging.info("Trying to send tasks for repo group with id: {}, but the repo group does not contain any repos".format(job['repo_group_id']))
continue
Expand Down
1 change: 0 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"moment": "^2.22.2",
"node-sass": "^4.12.0",
"query-string2": "^0.1.2",
"shards-vue": "^1.0.7",
"svgsaver": "^0.9.0",
"vega": "^4.4.0",
"vega-embed": "^3.18.1",
Expand Down

0 comments on commit ce28cf5

Please sign in to comment.