uranusjr commented on code in PR #43902:
URL: https://github.com/apache/airflow/pull/43902#discussion_r1839364450
##########
providers/src/airflow/providers/google/cloud/operators/gcs.py:
##########
@@ -794,7 +799,10 @@ def execute(self, context: Context) -> list[str]:
orig_start = context["data_interval_start"]
orig_end = context["data_interval_end"]
except KeyError:
- orig_start = pendulum.instance(context["execution_date"])
+ if AIRFLOW_V_3_0_PLUS:
+ orig_start = pendulum.instance(context["logical_date"])
+ else:
+ orig_start = pendulum.instance(context["execution_date"]) #
type: ignore[typeddict-item]
Review Comment:
`logical_date` is in the context on Airflow 2 too, so we can always just use
that
```suggestion
orig_start = pendulum.instance(context["logical_date"])
```
--
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]