Skip to content

Commit

Permalink
Merge pull request #226 from lsst/tickets/DM-45023
Browse files Browse the repository at this point in the history
DM-45023: Add close to producer
  • Loading branch information
bsmartradio authored Jul 2, 2024
2 parents 0491626 + 139e078 commit cc69087
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/ap/association/packageAlerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ def run(self,

if self.config.doProduceAlerts:
self.produceAlerts(alerts, visit, detector)
self.producer.close()

if self.config.doWriteAlerts:
with open(os.path.join(self.config.alertWriteLocation, f"{visit}_{detector}.avro"), "wb") as f:
Expand Down

0 comments on commit cc69087

Please sign in to comment.