eladkal commented on issue #16164:
URL: https://github.com/apache/airflow/issues/16164#issuecomment-851533318


   I think your issue is because you set `days_ago(6)` so it's not a full week 
ago when I changed it to be  `days_ago(10)` it worked fine.
   In any case the `start_date` needs to be static date and in both cases ` 
schedule_interval='15 5 * * SUN'` works fine on master branch:
   
   ```
   from airflow.models import DAG
   from airflow.operators.bash import BashOperator
   from datetime import timedelta, datetime
   
   args = {
       'owner': 'partha',
       'depends_on_past': False,
       'start_date': datetime(2015, 12, 1),
       'retries': 0,
       'retry_delay': timedelta(minutes=5)
   }
   
   dag = DAG(
       dag_id='scheduler_interval_102',
       schedule_interval='15 5 * * SUN',
       default_args=args,
       catchup=False,
       tags=['Test1']
   )
   
   hello_my_task = BashOperator(
       task_id='hello_task_1',
       bash_command='echo "hello_world %s %s"' % (dag.dag_id, 
dag.schedule_interval),
       dag=dag,
   )
   
   ```
   
   ![Screen Shot 2021-05-31 at 17 32 
15](https://user-images.githubusercontent.com/45845474/120208607-5715c880-c236-11eb-806c-2f943e2e5874.png)
   


-- 
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:
[email protected]


Reply via email to