rabsr opened a new issue #17534:
URL: https://github.com/apache/airflow/issues/17534


   **Apache Airflow version**: 2.1.2
   
   **What happened**:
   
   Dags created with start date are not triggered on expected time. 
   For eg. start date = `2021-07-29T06:00Z` and schedule interval `00 06 */1 * 
*`, 
   The dag is triggered at  `2021-07-30, 06:00:01` but using execution date as 
`2021-07-29, 06:00:00`
   
   
   **What you expected to happen**:
   
    The dag should be triggered at  `2021-07-29, 06:00:01`
   
   
   **How to reproduce it**:
   
   1. Use following dag
   ```
   args = {
       'owner': ‘test’-user
   }
   
   dag = DAG(
       dag_id=‘dag’_id_test,
       default_args=args,
       schedule_interval='20 15 */1 * *',
       access_control={‘test-user: {'can_read', 'can_edit'}},
       start_date = datetime.datetime.strptime('2021-07-29T06:00Z', 
"%Y-%m-%dT%H:%MZ"),
       end_date = datetime.datetime.strptime('2021-07-30T06:30Z', 
"%Y-%m-%dT%H:%MZ")
   }
   
   
   notebook_task = PapermillOperator(
       task_id=‘task’_id_test,
       dag=dag,
       run_as_user='test-user',
       input_nb=‘nb_inp_test.ipynb',
       output_nb=nb_out_test.ipynb,
       parameters={}
   )
   
   notebook_task
   ```


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