shreyaskj-0710 opened a new pull request, #54644:
URL: https://github.com/apache/airflow/pull/54644

   Fixes #54482 
   
   **Description**
   _📌 Day-of-Month (DOM) and Day-of-Week (DOW) Conflict in Cron_
   
   In cron syntax, both Day-of-Month (DOM) and Day-of-Week (DOW) fields are 
evaluated independently.
   If both are specified, the schedule runs when either condition matches 
(logical OR), not when both are true together.
   
   _Example_
   
      Cron expression : * * */1 * 5
   
      */1 → effectively means every day of the month
   
       5 → every Friday
   
      Together → Every minute (or) Every minute, only on Friday (but since */1 
means every day, the Friday part becomes                    
      redundant).
   
   ⚠️ This often causes confusion because users may expect it to mean “every 
Friday only” when in reality it matches “every day”.
   
   
   **Approach**
     -  Detect when both DOM (Day of the month) and DOW (Day of the week)  are 
restricted (i.e., not "*").
     -  Then split the expression into two variants:
     -  One ignoring DOW (DOM only)
     -  One ignoring DOM (DOW only)
   
   Each variant is described independently, and the final description combines 
them using “(or)”, which matches actual cron semantics.
   
   
   
   


-- 
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]

Reply via email to