You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/03 23:08:12 UTC

[GitHub] [airflow] sarit-si commented on issue #8649: Add support for more than 1 cron exp per DAG

sarit-si commented on issue #8649:
URL: https://github.com/apache/airflow/issues/8649#issuecomment-668283438


   > I would like to work on this.
   > 
   > The idea would be to allow a list of cron expressions as a `schedule_interval`. For example, the scheduling in the description would be defined as `schedule_interval = ['30/10 16 * * *', '*/10 17 * * *', '0,10 18 * * *']`. Do you think this is the way to go?
   
   This will be of great help. Instead of creating separate DAGs for the same job (like what currently I am doing), this would reduce to just 1 DAG taking care of multiple schedules. One workaround right now is if the crons are not strict, one can tweak multiple crons to have the minutes dimension same for all, for ex : "45 0,8,13 * * *", this will run for 0045, 0845 and 1345 Hrs respectively.
   Unfortunately, the crons in my case are strict (0100, 0815 and 1330 Hrs), hence have to create 3 separate DAGs. 
   Enabling schedule interval to accept list of crons would be very helpful :) 👍 


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org