Improvements
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
-4
@@ -140,13 +140,12 @@ class ConfirmationApp(App):
|
||||
try:
|
||||
result = await self.proposal_queue.get()
|
||||
self.add_result(result)
|
||||
except Exception as e:
|
||||
# Log error but keep the worker running
|
||||
self.log(f"Error polling proposal queue: {e}")
|
||||
finally:
|
||||
# Signal that the item has been processed
|
||||
if hasattr(self.proposal_queue, "task_done"):
|
||||
self.proposal_queue.task_done()
|
||||
except Exception as e:
|
||||
# Log error but keep the worker running
|
||||
self.log(f"Error polling proposal queue: {e}")
|
||||
|
||||
def add_result(self, result: ExtractionResult) -> None:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user