Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11 from alercebroker/hotfix/produce-key
Browse files Browse the repository at this point in the history
hotfix: produce with aid key
  • Loading branch information
dirodriguezm authored May 13, 2022
2 parents f6ed070 + 68055fb commit 16b2f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sorting_hat_step/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def produce(self, alerts: pd.DataFrame) -> None:
if isinstance(alert["extra_fields"][k], list):
alert["extra_fields"][k] = pickle.dumps(alert["extra_fields"][k])
# produce alert content with key of candid
self.producer.produce(alert, key=str(alert["candid"]))
self.producer.produce(alert, key=str(alert["aid"]))
n_messages += 1
self.logger.info(f"{n_messages} messages Produced")

Expand Down

0 comments on commit 16b2f0e

Please sign in to comment.