RFC: add pipeline_selection to @pipeline_failure_sensor
Summary:
allow users to specify a list of pipeline names that they want to alert on
besides, make_slack_on_pipeline_failure_sensor takes text_fn and blocks_fn and follow the same fallback as stated in slack's doc - this is so users who want fancy slack msg can use the built in without rewriting the same logic: e.g. D8700
my_slack_on_failure_sensor = make_slack_on_pipeline_failure_sensor( channel="#alert", slack_token=os.environ["SLACK_TOKEN"], blocks_fn=lambda context: slack_message_blocks_fn(context, base_url), pipeline_selection=[ "download_pipeline", ], )
Test Plan: the one in toy pipeline only alerts on error_monster
Reviewers: owen, prha, sandyryza
Reviewed By: prha
Differential Revision: https://dagster.phacility.com/D8701