Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Always returning "last task fails" on calling on_failure_callback_name #127

Open
bodhwani opened this issue Feb 18, 2022 · 0 comments

Comments

@bodhwani
Copy link

bodhwani commented Feb 18, 2022

On defining on_failure_callback_name and on_failure_callback_file, if the very first task (say task1) fails, context["ti"] always return the instance of last task defined in the DAG.

Eg: task1 >> task2 >> task3

If task1 fails, context["ti"] is always returning task3 instance.
If task1 succeed and task2 fails, context["ti"] returns task3 instance.

def custom_failure_function(context):
    ti = context["ti"]

I think thats a bug. If it's not a bug, how can I get the failed task's instance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant