在哪里可以找到 Airflows 电子邮件日志? [英] Where to find Airflows email logs?

查看:37
本文介绍了在哪里可以找到 Airflows 电子邮件日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Kubernetes 中部署的 Airflow 实例中的 STMP 电子邮件配置中设置 Airflows.我已经能够看到来自电子邮件服务器的日志,这些日志表明我已成功登录,但是当我的 DAG 成功时我没有收到电子邮件.我在 DAG 中设置了 'email_on_success': True.

I'm setting up Airflows build in STMP email configuration in an Airflow instance deployed in Kubernetes. I've been able to see logs from the email server that indicate I am successfully logging in but I'm not getting emails when my DAG's are successful. I have 'email_on_success': True set in my DAG.

我不确定是否或在哪里可以找到有关气流尝试发送这些电子邮件的位置的日志.我检查了网络服务器、调度程序和工作 pod 日志,但没有看到任何内容.

I'm not sure if or where I could find logs of where airflow is trying to send out these emails. I've checked on the webserver, scheduler, and worker pod logs but don't see anything.

推荐答案

它是为电子邮件功能提供服务的气流工作者.你可以在 Dag 运行期间执行 journalctl –uairflow-worker –f 来监控它,看看它是否尝试在成功时发送电子邮件.

It is the airflow worker that services the email features. You can do journalctl –u airflow-worker –f to monitor it during a Dag run and see if it is attempting to send an email on success.

如果你使用的是sendmail,你可以通过执行cat/var/log/maillog来检查它的日志.

If you are using sendmail, you can check it's logs by doing cat /var/log/maillog.

去年我遇到了和你一样的问题,但是 email_on_failure.如果有帮助,我的文章是这里

I had a problem like yours last year, but with email_on_failure. My write up is here if it helps!

这篇关于在哪里可以找到 Airflows 电子邮件日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆