GitHub user jenergm added a comment to the discussion: schedule_interval do not 
work the cron expression for week days with day of month interval

> > When I try using the cron expression "0 10 1-7 * 1". Must execute the first 
> > monday at 10am for each month but it executes the first seven days of each 
> > month at 10am.
> 
> > Must execute the first monday at 10am for each month.
> 
> This cron expression doesn't say what you think it say.
> 
> https://crontab.guru/#0_10_1-7_*_1
> 
> ![Screenshot 2024-12-03 at 17 33 
> 09](https://private-user-images.githubusercontent.com/45845474/392030135-d43288b2-346c-41d8-bc80-03498e338aa7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzMyNDc3OTEsIm5iZiI6MTczMzI0NzQ5MSwicGF0aCI6Ii80NTg0NTQ3NC8zOTIwMzAxMzUtZDQzMjg4YjItMzQ2Yy00MWQ4LWJjODAtMDM0OThlMzM4YWE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjAzVDE3MzgxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhZjgyODhiZjZiYjlmMzNkOGRiMTJkNDdmYWE0YzA5ZjQwMjI1YzFhMGJmMTEzZjcxOGU5ZWQxN2UyODVhYzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.K39F-f4mQNfvfDvxE5o-fYlbikRHThD91fyFYqQ_hQ0)
> 
> Either find a cron expresion that says what you wish or use 
> [Timetable](https://airflow.apache.org/docs/apache-airflow/stable/authoring-and-scheduling/timetable.html#timetables)
>  if you need customize behavior

Hi Elad,

What I need is it must run once a month in the first monday of month at 10AM.

The problem is that cron must be right, but it seams doing an OR condition 
instead of AND. It's running on other week days.

GitHub link: 
https://github.com/apache/airflow/discussions/45555#discussioncomment-11799080

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to