You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/09/23 07:34:35 UTC

[GitHub] [airflow] dstandish commented on a diff in pull request #26376: Add dataset event timestamp to dataset dag run queue

dstandish commented on code in PR #26376:
URL: https://github.com/apache/airflow/pull/26376#discussion_r978342158


##########
airflow/jobs/scheduler_job.py:
##########
@@ -1153,10 +1152,13 @@ def _create_dag_runs_dataset_triggered(
                     .all()
                 )
 
-                data_interval = dag.timetable.data_interval_for_events(exec_date, dataset_events)
+                data_interval = dag.timetable.data_interval_for_events(
+                    last_event_timestamp,  # type: ignore
+                    dataset_events,
+                )
                 run_id = dag.timetable.generate_run_id(
                     run_type=DagRunType.DATASET_TRIGGERED,
-                    logical_date=exec_date,
+                    logical_date=last_event_timestamp,  # type: ignore

Review Comment:
   it _thinks_ it wants DateTime
   but, what we actually get when we read timestamp values from the database is datetime
   i think we've encountered this recently, and it was a bit of a rabbit hole trying to fix it... but fundamentally i think that those timetable functions that say DateTime are more often getting datetime



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org