Hi all, is there a canonical way for dynamic workflows to collect only succesful sub-tasks? I have a task A that may or may not succeed. I have a dynamic workflow D that launches a bunch of instances of A, with various parameters. I want to collect only the successful results of A, aggregate them, and then return that result from D.
I've seen discussions of an
allowed_failure_ratio
parameter, but that seems to have been removed when moving away from sdk tasks. There's the
WorkflowFailurePolicy
, but while that would allow every sub-task to run, it doesn't seem that it would allow D to run.
My current approach is to wrap A in a
try/except
that returns an empty result, but D can't inspect the results to ignore A, so the aggregator has to decide if this is a valid result or not.
Does anyone have a better idea for how to return what is effectively a "I failed, but it's okay, just ignore me" signal?