Skip to content

Commit

Permalink
FIX: Fix setting attributes for question event
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed Jan 13, 2025
1 parent f1c6dd9 commit 390be58
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions octue/cloud/pub_sub/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,18 +537,16 @@ def _emit_event(
"""
attributes = attributes or {}

attributes.update(
make_attributes(
question_uuid=question_uuid,
parent_question_uuid=parent_question_uuid,
originator_question_uuid=originator_question_uuid,
parent=parent,
originator=originator,
sender=self.id,
sender_type=attributes["sender_type"],
recipient=recipient,
retry_count=retry_count,
)
attributes = make_attributes(
question_uuid=question_uuid,
parent_question_uuid=parent_question_uuid,
originator_question_uuid=originator_question_uuid,
parent=parent,
originator=originator,
sender=self.id,
recipient=recipient,
retry_count=retry_count,
**attributes,
)

converted_attributes = {}
Expand Down

0 comments on commit 390be58

Please sign in to comment.