mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
process_fts_updates: Update comments for TODO being actually done.
This commit is contained in:
committed by
Tim Abbott
parent
09f1195fb5
commit
cc665cb9b7
@@ -248,13 +248,13 @@ while True:
|
||||
# Catch up on any historical columns
|
||||
update_all_rows("Caught up", conn)
|
||||
|
||||
# TODO: If we go back into recovery, we should stop processing updates
|
||||
if select.select([conn], [], [], 30) != ([], [], []):
|
||||
conn.poll()
|
||||
conn.notifies.clear()
|
||||
update_all_rows("Updated", conn)
|
||||
|
||||
except psycopg2.OperationalError as e:
|
||||
# We will end up here if the database is restarted, or becomes read-only.
|
||||
retries -= 1
|
||||
if retries <= 0:
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user