Skip to content

Commit 372e699

Browse files
authored
Change the template to use human readable task_instance description (#25960)
The task_instance_key_str description is a better template example as a human-readable description of the task.
1 parent f94176b commit 372e699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow/example_dags/example_bash_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
# [START howto_operator_bash_template]
5959
also_run_this = BashOperator(
6060
task_id='also_run_this',
61-
bash_command='echo "run_id={{ run_id }} | dag_run={{ dag_run }}"',
61+
bash_command='echo "ti_key={{ task_instance_key_str }}"',
6262
)
6363
# [END howto_operator_bash_template]
6464
also_run_this >> run_this_last

0 commit comments

Comments
 (0)