Skip to content

Commit b5d27b5

Browse files
committed
Raise exception after logging error in publish when the queue is full
1 parent 9e12680 commit b5d27b5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

mongoose/core/processing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def publish(self, topic: ProcessingTopic, data: Any):
7474
q.put_nowait(data)
7575
except Full as e:
7676
logger.error(f"Failed to publish data to {topic}: {e}")
77+
raise e
7778

7879
def subscribe(self, topic: ProcessingTopic | List[ProcessingTopic], subscriber_id: str, queue_size=100) -> Queue:
7980
"""Subscribe to one or more topics and receive a dedicated queue for receiving data.

0 commit comments

Comments
 (0)