-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Description
Apache Airflow version
3.0.4
If "Other Airflow 2 version" selected, which one?
2.11
What happened?
The cron expression * * */1 * 5 is reported in Airflow as "Every minute, only on Friday", when in reality the dag runs every day.
Per the cron manpage:
Commands are executed by cron(8) when the 'minute', 'hour', and 'month of the year' fields match the current time, and at least one of the two 'day' fields ('day of month', or 'day of week') match the current time (see "Note" below).
That is, since the day-of-month field and day-of-week fields are both populated and cron interprets these fields as OR, this dag runs every minute of every day, rather than every minute only on Fridays.
What you think should happen instead?
The UI should say that a dag with the schedule * * */1 * 5 runs every minute, or a dag with the schedule 0 0 */1 * 5 runs every day at midnight instead of saying midnight on Friday.
How to reproduce
Create a dag whose schedule is "* * */1 * 5". Hover over the schedule widget in the UI.
Operating System
n/a
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct