stephen_bailey
10/26/2021, 1:38 AMtap-slack
issues and I've got a question: I opted for parent-child relationships between channels <- messages <- threads
. However, I'd like to override the default state behavior for threads
that emits a state message for every parent stream. So I thought I would set:
@property
def state_partitioning_keys(self):
"Remove channel_id and message_ts from state output."
return []
But, this also appears to remove it from the record output, which is something I do want. Is there a recommended method for removing state while including the partition fields in the output?stephen_bailey
10/26/2021, 1:38 AMaaronsteers
10/26/2021, 1:43 AMpost_process()
, getting the values from context
.aaronsteers
10/26/2021, 1:46 AMClass ...
state_partioning_keys = []
stephen_bailey
10/26/2021, 1:56 AMstephen_bailey
10/26/2021, 1:56 AMaaronsteers
10/26/2021, 2:22 AMaaronsteers
10/26/2021, 2:23 AMstephen_bailey
10/26/2021, 10:46 AMstate
messages were only useful for resumability, but if there are processes that use it for evaluating progress, it makes sense to include it. The pain point here is just that the state messages can get really big with the parent-child relationship functionality.aaronsteers
10/26/2021, 1:35 PM