amoghrajesh commented on code in PR #67319:
URL: https://github.com/apache/airflow/pull/67319#discussion_r3296182682


##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/task_state.py:
##########
@@ -16,6 +16,7 @@
 # under the License.
 from __future__ import annotations
 
+from datetime import datetime, timedelta, timezone

Review Comment:
   The shared timezone import in `parameters.py` is for `timezone.parse()`. In 
`_resolve_expires_at` we only need `timezone.utc` for UTC `datetime` 
arithmetic, which the stdlib `datetime.timezone` covers exactly. Pulling in the 
shared module here would add pendulum overhead for no gain. Happy to change if 
you see a reason I'm missing though!



-- 
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]

Reply via email to