apache / apache/airflow

The updated context['ti'] will not be available in post_execute functions

Open
#13,296 1 comment 0 reactions 0 assignees View on GitHub
area:core area:lineage kind:feature
Dominant language
Python
Stars
46.9k
Forks
17.8k
Avg merge
2d 9h
Merged PRs (30d)
472

Description

https://github.com/apache/airflow/blob/d4c4492a10f5e269f80067b724aa2c345bf97ee0/airflow/models/taskinstance.py#L1263

The updated context['ti'] will not be available in post_execute functions.
ti.state/ti.end_date/ti.duration is very useful if I want to send the updated task_instance to somewhere else like Atlas.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.