Skip to content

Commit

Permalink
fix: mark signals as already emitted by event bus
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Feb 9, 2024
1 parent 16b8559 commit 5d342ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edx_event_bus_redis/internal/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def emit_signals_from_message(self, msg: RedisMessage):

signal = OpenEdxPublicSignal.get_signal_by_type(msg.event_metadata.event_type)
event_data = deserialize_bytes_to_event_data(msg.event_data, signal)
send_results = signal.send_event_with_custom_metadata(msg.event_metadata, **event_data)
send_results = signal.send_event_with_custom_metadata(msg.event_metadata, **event_data, from_event_bus=True)
# Raise an exception if any receivers errored out. This allows logging of the receivers
# along with partition, offset, etc. in record_event_consuming_error. Hopefully the
# receiver code is idempotent and we can just replay any messages that were involved.
Expand Down

0 comments on commit 5d342ed

Please sign in to comment.