InigoSJ commented on issue #6058: [AIRFLOW-5439] Add 'schedule_interval' to 
'default_args'
URL: https://github.com/apache/airflow/pull/6058#issuecomment-531463470
 
 
   > We have deprecated using `schedule_interval` at task level. You need to 
only specify it as a DAG parameter instead.
   
   I'm not sure I get what you are saying. The only difference this PR makes is 
being able to specify the `schedule_interval` in the `default_args` of the DAG. 
It does not relate to task level scheduling if I'm not mistaken. 
   
   For example, this will be a valid way to set the `schedule_interval`:
   
   ```
       default_args = {
                [...]
                'schedule_interval':'@hourly'
       }
       dag = DAG('task_example',default_args=default_args)
   ```
   
   rather than having to do it like:
   
   `    dag = DAG('task_example',default_args=default_args, 
schedule_interval="@hourly")`
   
   
   Here you have a [StackOverflow question 
](https://stackoverflow.com/questions/57752214/)that describe what this PR will 
fix

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to