jyotsa09 opened a new issue, #26013:
URL: https://github.com/apache/airflow/issues/26013

   ### Apache Airflow version
   
   main (development)
   
   ### What happened
   
   Schedule_interval is `none` even if `schedule_interval=timedelta(days=5)` 
also its 1 day for `schedule_interval=None`
   
   ### What you think should happen instead
   
   It should respect the value assigned to it.
   
   ### How to reproduce
   
   Create a dag with `schedule_interval=None` or 
`schedule_interval=timedelta(days=5)` and observe the behaviour.
   ![2022-08-27 17 42 
07](https://user-images.githubusercontent.com/88504849/187039335-90de6855-b674-47ba-9c03-3c437722bae5.gif)
   
   **DAG-**
   ```
   with DAG(
       dag_id="branch_python_operator",
       start_date=days_ago(1),
       schedule_interval="* * * * *",
       doc_md=docs,
       tags=['core']
   ) as dag:
   ```
   
   **DB Results-** 
   ```
   postgres=# select schedule_interval from dag  where 
dag_id='branch_python_operator';
                                 schedule_interval
   
------------------------------------------------------------------------------
    {"type": "timedelta", "attrs": {"days": 1, "seconds": 0, "microseconds": 0}}
   (1 row)
   ```
   
   
   ### Operating System
   
   Ubuntu
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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