Alex B
03/01/2024, 2:42 PMget_child_context
spits out duplicate contexts return {"member_id": record['member_id']}
. Is there a way to collect all the member_ids from the TeamMembers stream then pass them along to a child stream?Edgar Ramírez (Arch.dev)
03/01/2024, 6:06 PMIs there a way to collect all the member_ids from the TeamMembers stream then pass them along to a child stream?There isn't, but you could try the overriding the
__init__
method of TeamMembers
to record which member IDs you've seen before
class TeamMembers(YourParentClass):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.seen_members = set()
then use that to return None from get_child_context
if the team member has already been processed.Alex B
03/01/2024, 7:30 PMEdgar Ramírez (Arch.dev)
03/01/2024, 7:43 PM