This is an automated email from the ASF dual-hosted git repository.
potiuk 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 3f4028f54e Update dag-run.rst to mention Airflow's support for
extended cron syntax through croniter (#35342)
3f4028f54e is described below
commit 3f4028f54e84f709da2bf35e47e412e2334c4b0d
Author: Rafnel <[email protected]>
AuthorDate: Thu Nov 2 17:47:47 2023 -0500
Update dag-run.rst to mention Airflow's support for extended cron syntax
through croniter (#35342)
Without diving into the source code, it is unclear to readers that Airflow
supports an extended cron syntax due to its usage of croniter. This
documentation change should point readers to croniter for all supported cron
formats.
---
docs/apache-airflow/core-concepts/dag-run.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/apache-airflow/core-concepts/dag-run.rst
b/docs/apache-airflow/core-concepts/dag-run.rst
index f9ae98e351..e477561e0f 100644
--- a/docs/apache-airflow/core-concepts/dag-run.rst
+++ b/docs/apache-airflow/core-concepts/dag-run.rst
@@ -49,7 +49,7 @@ Cron Presets
You may set your DAG to run on a simple schedule by setting its ``schedule``
argument to either a
`cron expression <https://en.wikipedia.org/wiki/Cron#CRON_expression>`_, a
``datetime.timedelta`` object,
-or one of the following cron "presets". For more elaborate scheduling
requirements, you can implement a :doc:`custom timetable
<../authoring-and-scheduling/timetable>`
+or one of the following cron "presets". For more elaborate scheduling
requirements, you can implement a :doc:`custom timetable
<../authoring-and-scheduling/timetable>`. Note that Airflow parses cron
expressions with the croniter library which supports an extended syntax for
cron strings. See their documentation `in github
<https://github.com/kiorky/croniter>`_. For example, you can create a DAG
schedule to run at 12AM on the first Monday of the month with their extended
cron syntax: ``0 [...]
.. tip::
You can use an online editor for CRON expressions such as `Crontab guru
<https://crontab.guru/>`_