uranusjr commented on code in PR #43902:
URL: https://github.com/apache/airflow/pull/43902#discussion_r1841525715
##########
providers/src/airflow/providers/elasticsearch/log/es_task_handler.py:
##########
@@ -266,15 +271,18 @@ def _render_log_id(self, ti: TaskInstance |
TaskInstanceKey, try_number: int) ->
data_interval_end = data_interval[1].isoformat()
else:
data_interval_end = ""
- execution_date = dag_run.execution_date.isoformat()
+ logical_date = (
+ dag_run.logical_date.isoformat() if AIRFLOW_V_3_0_PLUS else
dag_run.execution_date.isoformat()
+ )
Review Comment:
```suggestion
logical_date = dag_run.logical_date.isoformat()
```
`dag_run.logical_date` is available on Airflow 2.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]