Skip to content

Commit

Permalink
Modified reindex.py script to re-raise exception; also sleep longer t…
Browse files Browse the repository at this point in the history
…o give solr chance to swap
  • Loading branch information
romanchyla committed Feb 27, 2021
1 parent ed6c50b commit b2f6495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/reindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def run():
logger.info('Swapped collection1 with collection2')

logger.info('Going to sleep for few secs...')
time.sleep(5)
time.sleep(30)

# verify the new core is loaded
new_cores = requests.get(cores_url + '?wt=json').json()
Expand All @@ -149,7 +149,7 @@ def run():
logger.error('Failed; we will keep the process permanently locked: %s' % (e,))
data['last-exception'] = str(e)
write_lockfile(lockfile, data)

raise


def execute(command, **kwargs):
Expand Down

0 comments on commit b2f6495

Please sign in to comment.