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/08/19 09:30:06 UTC

[GitHub] [airflow] uranusjr commented on a diff in pull request #25795: Let timetables control generated run_ids.

uranusjr commented on code in PR #25795:
URL: https://github.com/apache/airflow/pull/25795#discussion_r950001227


##########
airflow/timetables/base.py:
##########
@@ -200,3 +203,15 @@ def next_dagrun_info(
             a DagRunInfo object when asked at another time.
         """
         raise NotImplementedError()
+
+    def generate_run_id(
+        self,
+        *,
+        run_type: "DagRunType",
+        logical_date: DateTime,
+        data_interval: Optional[DataInterval],
+        **extra,
+    ) -> str:
+        from airflow.models.dagrun import DagRun
+
+        return DagRun.generate_run_id(run_type, logical_date)

Review Comment:
   Same, this should probably become a free function.



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