callback of a flow to send a message to a slack channel that ideally looks something like “OH MAN THE FLOW FAILED - Click here to see the flow” with a proper link. Does the flow object contain any information I can use to construct a useful URL, specifically the flow_id?
@Amanda Wee Im hoping youve used the slack notifier before, so running this with you before I raise a bug report:
The slack notifier works when you attach it as a state_handler, but does not work when you attach it via
on_failure
. I cant see this caveat documented and it certainly seems unintuitive given the on_failure was meant to be a subset of state_handler
a
Amanda Wee
03/19/2021, 11:51 AM
I've used
slack_notifier
, but not with
on_failure
, so I'm afraid that I can't say anything about that.
Amanda Wee
03/19/2021, 11:56 AM
Okay, a quick check of the API explains why: the signature of the callback expected for a state handler is different from the signature of the callback expected for
on_failure
, i.e., a generic state handler must accept both old state and new state, whereas on failure the callback only needs to accept the new state, i.e., the specific failure state.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.