Hey everyone
I have a flows that triggers other child flows and I want to notify slack when one of them fails- this is my ( logic) code:
child_flow = create_flow_run(
flow_name=CHILD_FLOW,
parameters={
"input_data": input_data,
"run_id": run_id,
},
project_name="default",
)
child_result = get_task_run_result(
child_flow,
task_slug="child_flow-copy",
poll_time=3,
)
I tried to add handler to get_task_run_result but it get error:
child_result = get_task_run_result(
hazarder_flow,
task_slug="child_flow-copy",
poll_time=3,
state_handlers=[post_to_slack_task_handler],
)
TypeError: got an unexpected keyword argument 'state_handler'
So how can I do it?
thanks