leakec commented on issue #50911:
URL: https://github.com/apache/airflow/issues/50911#issuecomment-3075952934

   @potiuk My apologies, you're right, I should have included them. Here is 
what I'm seeing in airflow. I've stripped out absolute paths so they are 
relative to the airflow installed directory.
   
   ```
   AttributeError: 'datetime.datetime' object has no attribute 'in_timezone'
   File 
"lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py", line 
877 in run
   File 
"lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py", line 
1164 in _execute_task
   File "lib/python3.12/site-packages/airflow/sdk/bases/operator.py", line 397 
in wrapper
   File 
"lib/python3.12/site-packages/airflow/providers/standard/operators/branch.py", 
line 104 in execute
   File "/dags/common.py", line 174 in choose_branch
   File 
"lib/python3.12/site-packages/airflow/providers/standard/operators/latest_only.py",
 line 69 in choose_branch
   File 
"lib/python3.12/site-packages/airflow/providers/standard/operators/latest_only.py",
 line 110 in _get_compare_dates
   File "lib/python3.12/site-packages/airflow/timetables/interval.py", line 105 
in next_dagrun_info
   File "lib/python3.12/site-packages/airflow/timetables/_cron.py", line 149 in 
_align_to_prev
   File "lib/python3.12/site-packages/airflow/timetables/_cron.py", line 128 in 
_get_prev
   ```
   
   It's also worth noting I fixed this locally using the same fix I mentioned 
[above](https://github.com/apache/airflow/issues/50911#issuecomment-2901370256).
 I would be happy to make a PR for this, but I got stuck on re-creating the 
issue in testing (see my comment above). If you have any suggestions there, I'd 
be happy to try them. Thanks!


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