nailo2c commented on code in PR #58543:
URL: https://github.com/apache/airflow/pull/58543#discussion_r3066927901
##########
airflow-core/docs/authoring-and-scheduling/timetable.rst:
##########
@@ -290,6 +292,23 @@ Here's an example of a Dag using ``AssetOrTimeSchedule``:
# Dag tasks go here
pass
+Here's an example of a Dag using ``AssetAndTimeSchedule`` to require both the
time-based schedule and fresh assets before a run starts:
+
+.. code-block:: python
+
+ from airflow.sdk import AssetAndTimeSchedule, CronTriggerTimetable
+
+
+ @dag(
+ schedule=AssetAndTimeSchedule(
+ timetable=CronTriggerTimetable("0 1 * * 3", timezone="UTC"),
assets=(dag1_asset & dag2_asset)
+ )
+ # Additional arguments here, replace this comment with actual arguments
+ )
Review Comment:
A little bit nit but I'm going to fix it.
--
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]