Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions UPDATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ assists users migrating to a new version.

## Airflow Master

### Variables removed from the task instance context

The following variables were removed from the task instance context:
- end_date
- latest_date
- tables

### Moved provide_gcp_credential_file decorator to GoogleCloudBaseHook

To simplify the code, the decorator has been moved from the inner-class.
Expand Down
2 changes: 0 additions & 2 deletions airflow/models/taskinstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,10 +1202,8 @@ def __repr__(self):
'dag_run': dag_run,
'ds': ds,
'ds_nodash': ds_nodash,
'end_date': ds,
'execution_date': pendulum.instance(self.execution_date),
'inlets': task.inlets,
'latest_date': ds,
'macros': macros,
'next_ds': next_ds,
'next_ds_nodash': next_ds_nodash,
Expand Down
2 changes: 0 additions & 2 deletions docs/macros.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ Variable Description
``{{ task }}`` the Task object
``{{ macros }}`` a reference to the macros package, described below
``{{ task_instance }}`` the task_instance object
``{{ end_date }}`` same as ``{{ ds }}``
``{{ latest_date }}`` same as ``{{ ds }}``
``{{ ti }}`` same as ``{{ task_instance }}``
``{{ params }}`` a reference to the user-defined params dictionary which can be overridden by
the dictionary passed through ``trigger_dag -c`` if you enabled
Expand Down
1 change: 0 additions & 1 deletion tests/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ def test_test(self):

output = out.getvalue()
# Check that prints, and log messages, are shown
self.assertIn('end_date', output)
self.assertIn("'example_python_operator__print_the_context__20180101'", output)
finally:
sys.stdout = saved_stdout
Expand Down