GitHub user potiuk edited a comment on the discussion: Is it possible to allow 
the last task in a DAG to fail, but for the DAG Run to still be successful?

```
try:
  your code for notification
except Exception:
  pass
```

You can write your own operator, (see custom operators in the docs) or write 
task flow tasks that will NEVER fail, regardless if the code to execute it 
failed or not. That's easy. you want the task to succeed, when your 
notification failed. So make it succeed.


GitHub link: 
https://github.com/apache/airflow/discussions/43443#discussioncomment-11078737

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to