You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Slack notifications stopped working after upgrade to 3.0.1 #50754
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
I think none of the callbacks (not slack specific) that rely on having a context work. Maybe I'm understanding something wrong but in the dag processor, it looks like the context passed to the callbacks is always empty. (The TODO indicates some missing stuff as well)
Are context variables dagrun_idreason enough for your use cases? I’ll close this one if so. List what you need otherwise and we’ll work on adding them.
Currently for my use case those will be sufficient, but maybe this should be noted somewhere in the docs or in a new issue as it isn't obvious that most context vars won't work and cause a silent failure (for people who can't access all logs but only the UI).
This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.
I've upgraded from 2.10.5 to 3.0.2 and my Slack notification also broken. After debugging, I found out that task_instance variable will send None to task_instance.end_date and not send task_instance.duration if task stated as failed. So, if your notification contains end_date and duration for failed DAG, just remove it or find a new way to handle it will make notification back.
Activity
boring-cyborg commentedon May 18, 2025
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
amoghrajesh commentedon May 19, 2025
@arturzangiev what errors do you see in your tasks or in the scheduler / worker?
arturzangiev commentedon May 19, 2025
It is strange, but i can't find any slack related logs in my tasks or scheduler
uranusjr commentedon May 20, 2025
What version were you upgrading from?
uranusjr commentedon May 20, 2025
Does the dag processor process contain logs about callbacks?
arturzangiev commentedon May 20, 2025
I have upgraded from airflow:2.10.2 to airflow:3.0.1. I checked processor logs and can't find anything around callbacks.
niklasr22 commentedon May 20, 2025
I have the same problem (Upgraded from 2.10.5 to 3.0.1, running in Docker). I also can't find any callback/slack provider specific logs.
niklasr22 commentedon May 22, 2025
I think none of the callbacks (not slack specific) that rely on having a context work. Maybe I'm understanding something wrong but in the dag processor, it looks like the context passed to the callbacks is always empty. (The TODO indicates some missing stuff as well)
airflow/airflow-core/src/airflow/dag_processing/processor.py
Lines 163 to 173 in 4ecebc2
I also found a log:
uranusjr commentedon May 22, 2025
Do either you see the
Executing on_%s dag callbacklog?niklasr22 commentedon May 22, 2025
Yes:
2 remaining items
uranusjr commentedon May 22, 2025
Are context variables
dagrun_idreasonenough for your use cases? I’ll close this one if so. List what you need otherwise and we’ll work on adding them.htamakos commentedon May 23, 2025
I have encountered the same issue.
Environment:
Airflow 3.0.1 on Kubernetes
Observed behavior:
niklasr22 commentedon May 23, 2025
Currently for my use case those will be sufficient, but maybe this should be noted somewhere in the docs or in a new issue as it isn't obvious that most context vars won't work and cause a silent failure (for people who can't access all logs but only the UI).
github-actions commentedon Jun 7, 2025
This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.
github-actions commentedon Jun 15, 2025
This issue has been closed because it has not received response from the issue author.
Nevioxis commentedon Jun 30, 2025
I've upgraded from 2.10.5 to 3.0.2 and my Slack notification also broken. After debugging, I found out that task_instance variable will send None to task_instance.end_date and not send task_instance.duration if task stated as failed. So, if your notification contains end_date and duration for failed DAG, just remove it or find a new way to handle it will make notification back.
amoghrajesh commentedon Jul 1, 2025
@Nevioxis could you point at some things and if possible raise an appropriate issue? We will take a look.
Nevioxis commentedon Jul 1, 2025
@amoghrajesh I've opened new issue.