We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 433515e commit 92b295fCopy full SHA for 92b295f
yam_indexing_module/main_indexing.py
@@ -131,6 +131,7 @@ def main_indexing():
131
except KeyboardInterrupt:
132
logger.info("Received Ctrl+C, shutting down the indexing service...")
133
print("Process stopped by user")
134
+ raise
135
except Exception as e:
136
logger.error(f"Indexing loop failed with error: {str(e)}", exc_info=True)
137
print(f"Indexing loop failed with error: {str(e)}")
@@ -139,6 +140,8 @@ def main_indexing():
139
140
while True:
141
try:
142
main_indexing()
143
+ except KeyboardInterrupt:
144
+ break
145
146
logger = logging.getLogger(__name__)
147
logger.exception("Fatal error in main_indexing. Restarting in 30 seconds...")
0 commit comments