Skip to content

Commit

Permalink
prevent locking during background material titles pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Jan 18, 2024
1 parent 1564e46 commit 6f220fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def iterate_new_titles():
committees = get_committees_tree()
with db.get_db_engine().connect() as conn:
for row in conn.execute(dedent('''
for row in list(conn.execute(dedent('''
select
sess."CommitteeSessionID" committee_session_id,
sess."CommitteeID" committee_id,
Expand All @@ -26,7 +26,7 @@ def iterate_new_titles():
doc."GroupTypeID" = 87
and doc."FilePath" is not null
group by sess."CommitteeSessionID", sess."CommitteeID", sess."SessionUrl"
''')):
'''))):
committee = committees.get(row.committee_id)
if not committee:
continue
Expand Down

0 comments on commit 6f220fd

Please sign in to comment.