Contenu connexe
Similaire à MOVの機械学習システムを支えるMLOps実践 (20)
Plus de Takashi Suzuki (11)
MOVの機械学習システムを支えるMLOps実践
- 54. DeNA TechCon 2020
#denatechcon
def task_fail_slack_alert(context):
slack_msg = “Task Failed.”
failed_alert = SlackWebhookOperator(
task_id="xxx",
http_conn_id="slack",
webhook_token=Variable.get("webhook.token"),
message=slack_msg,
username="airflow",
)
return failed_alert.execute(context=context)