This is an automated email from the ASF dual-hosted git repository.
Lee-W pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 424f6ec8be2 Enhance/standardize documentation for
`AssetOrTimeSchedule` (#69831)
424f6ec8be2 is described below
commit 424f6ec8be26d343cdf6559f326eaefeacae32e6
Author: Jake McGrath <[email protected]>
AuthorDate: Fri Jul 17 11:38:42 2026 -0400
Enhance/standardize documentation for `AssetOrTimeSchedule` (#69831)
---
airflow-core/docs/authoring-and-scheduling/timetable.rst | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/airflow-core/docs/authoring-and-scheduling/timetable.rst
b/airflow-core/docs/authoring-and-scheduling/timetable.rst
index b19cc802113..e5ae326f34e 100644
--- a/airflow-core/docs/authoring-and-scheduling/timetable.rst
+++ b/airflow-core/docs/authoring-and-scheduling/timetable.rst
@@ -264,8 +264,9 @@ first, event for the data interval. Otherwise, manual runs
begin with a ``data_i
.. _asset-timetable-section:
-Asset event based scheduling with time based scheduling
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+AssetOrTimeSchedule
+^^^^^^^^^^^^^^^^^^^
+
Combining conditional asset expressions with time-based schedules enhances
scheduling flexibility.
The ``AssetOrTimeSchedule`` is a specialized timetable that allows for the
scheduling of Dags based on both time-based schedules and asset events. It also
facilitates the creation of both scheduled runs, as per traditional timetables,
and asset-triggered runs, which operate independently.
@@ -283,15 +284,13 @@ Here's an example of a Dag using ``AssetOrTimeSchedule``:
@dag(
schedule=AssetOrTimeSchedule(
timetable=CronTriggerTimetable("0 1 * * 3", timezone="UTC"),
assets=(dag1_asset & dag2_asset)
- )
- # Additional arguments here, replace this comment with actual arguments
+ ),
+ ...,
)
def example_dag():
- # Dag tasks go here
pass
-
Timetables comparisons
----------------------